Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CSRF Protection with multiple js scripts
Post: CSRF Protection with multiple js scripts

I have a view profile page that uses two Ajax requests and thus two script files: profile_subscribe and profile_views. Either script works when it's the only script included with the view. It's when I...
302 Views
1 Replies
07-05-2022, 12:28 AM
AgBRAT
    Thread: Custom Validate Birthday with value for each $year, $month, $day
Post: RE: Custom Validate Birthday with value for each $...

I solved it thank you for the help!  This is what I ended up doing with my custom rule: PHP Code: -- public function validateDate($str, string $fields, array $data)     {         if (checkdate(...
432 Views
4 Replies
06-29-2022, 08:34 AM
AgBRAT
    Thread: Custom Validate Birthday with value for each $year, $month, $day
Post: Custom Validate Birthday with value for each $year...

I am trying to use a custom rule to validate user's birthday (ie: so there's no February 31st). In my form I have the values separated by month, day, and year. Currently I take the post data for these...
432 Views
4 Replies
06-28-2022, 02:12 PM
AgBRAT
    Thread: Like or dislike feature allows both but want to limit one vote per user
Post: Like or dislike feature allows both but want to li...

I am trying to implement a like (unlike) or dislike (undislike) feature to my image upload site. I am using AJAX to accomplish this and so far I have been able to limit users to one view of each uploa...
340 Views
2 Replies
06-13-2022, 10:03 PM
AgBRAT
    Thread: AJAX post request gives 404 Page Not Found Error.
Post: RE: AJAX post request gives 404 Page Not Found Err...

AgBRAT Wrote: (06-13-2022, 12:22 PM) -- I have developed a site where users can upload images of shapes, like/dislike/favorite/comment, subscribe to other users, and keep a view history of pages user...
349 Views
2 Replies
06-13-2022, 12:45 PM
AgBRAT
    Thread: AJAX post request gives 404 Page Not Found Error.
Post: AJAX post request gives 404 Page Not Found Error.

I have developed a site where users can upload images of shapes, like/dislike/favorite/comment, subscribe to other users, and keep a view history of pages users have visited. As such, I have a pretty ...
349 Views
2 Replies
06-13-2022, 12:22 PM
AgBRAT
    Thread: Can I make an array filled with an entity object?
Post: RE: Can I make an array filled with an entity obje...

I was able to create a multidimensional array of my entity class Image.php and fill this array using these functions defined in my ImageModel.php: PHP Code: -- public function fillImageEntity(string...
291 Views
1 Replies
06-13-2022, 04:18 AM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

kenjis Wrote: (06-12-2022, 11:53 PM) -- Your routing definitions seems to be okay. I don't know why you get the error. You can see the error message, do you also see the back trace? If you can ...
1,246 Views
18 Replies
06-13-2022, 12:01 AM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

kenjis Wrote: (06-12-2022, 11:47 PM) -- You can see the error message, do you also see the back trace? If you can see the back trace, you can go to  the source code that the error happened. [hr] W...
1,246 Views
18 Replies
06-12-2022, 11:50 PM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

kenjis Wrote: (06-12-2022, 11:42 PM) -- What is the output of `spark routes`? -- [hr] kenjis Wrote: (06-12-2022, 11:42 PM) -- What is the output of `spark routes`? -- Code: -- PHP Warning:  Failed ...
1,246 Views
18 Replies
06-12-2022, 11:44 PM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

kenjis Wrote: (06-12-2022, 11:35 PM) -- Install Xdebug or remove the config in php.ini. When you uncomment the lines in Routes.php, what's the difference of the routes? -- When I uncomment the l...
1,246 Views
18 Replies
06-12-2022, 11:38 PM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

kenjis Wrote: (06-12-2022, 02:59 PM) -- Check your routes: $ php spark routes -- Code: -- [email protected] shape_search % php spark routes PHP Warning:  Failed loading Zend extension ...
1,246 Views
18 Replies
06-12-2022, 11:03 PM
AgBRAT
    Thread: Fatal error: Uncaught Error: Call to a member function run() on int
Post: Fatal error: Uncaught Error: Call to a member func...

I updated to CodeIgniter 4.2.0 using Composer and now I get the following error. Code: -- Fatal error: Uncaught Error: Call to a member function run() on int in /Users/nykianderson/Sites/shape_searc...
755 Views
1 Replies
06-12-2022, 12:04 PM
AgBRAT
    Thread: Can I make an array filled with an entity object?
Post: Can I make an array filled with an entity object?

I'm trying to display a gallery of images with attributes like:  number of likes uploader name rating (likes+dislikes/total likes) percentage I have all these attributes in an image entity cl...
291 Views
1 Replies
06-12-2022, 10:00 AM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

PHP Code: -- /* * -------------------------------------------------------------------- * Router Setup * -------------------------------------------------------------------- */ $routes->setDe...
1,246 Views
18 Replies
06-12-2022, 09:18 AM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

Thank you for everyone the helped! I am not totally solved but I have a better understanding.
1,246 Views
18 Replies
06-08-2022, 09:21 AM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

kenjis Wrote: (06-07-2022, 05:15 PM) -- Remove View_Image::_remap() method. It is an unnecessary old feature and only makes the existing routing definitions confusing. -- Okay I removed the remap an...
1,246 Views
18 Replies
06-07-2022, 05:36 PM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: RE: Correct URI and Route but Page Won't Load (Bla...

includebeer Wrote: (06-07-2022, 04:09 PM) -- A blank page mean there's an error. If it was a routing error, you would get a 404 error. Look at your log files for any error messages.. Also increase yo...
1,246 Views
18 Replies
06-07-2022, 04:19 PM
AgBRAT
    Thread: Correct URI and Route but Page Won't Load (Blank Page)
Post: Correct URI and Route but Page Won't Load (Blank P...

I am still pretty new to MVC and routing especially but I have managed to get the majority of my site navigable with $routes->setAutoRoute(FALSE). HOWEVER, one of my methods won't load even though the...
1,246 Views
18 Replies
06-07-2022, 04:06 PM
AgBRAT
    Thread: Builder vs. Model Queries with Entities
Post: RE: Builder vs. Model Queries with Entities

I mean is it required that you use Model queries when implementing Entity Classes.
357 Views
3 Replies
06-07-2022, 12:19 PM
AgBRAT

Theme © iAndrew 2016 - Forum software by © MyBB