js file loaded without being in the view

General discussion forum for the Zend Server
Post Reply
libi4647
Posts: 1
Joined: Wed Jan 03, 2018 7:37 pm

js file loaded without being in the view

Post by libi4647 » Wed Jan 03, 2018 7:46 pm

Hello guys.
I have this problem.
I need to put some validation in my forms, things like if the date is correct, numbers are correct or bigger and other things. I have successfully made this happend doing in the PHTML file in the view.
but this new application do not use view to show the data to the user.
What I need is to learn how to load JS file without being in the view. someplace like the controller or in the form.
Can someone please help me,
thanks

andr8558
Posts: 19
Joined: Thu Jan 11, 2018 5:45 pm

Re: js file loaded without being in the view

Post by andr8558 » Thu Jan 11, 2018 7:41 pm

I believe you would get a better response if you asked this on StackOverflow. Unfortunately the forums over here seem pretty dead these days ...

alex8643
Posts: 1
Joined: Thu Jan 18, 2018 11:33 am
Contact:

Re: js file loaded without being in the view

Post by alex8643 » Thu Jan 18, 2018 11:35 am

Nice Post Thanks For Sharing!

Post Reply