Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: myth-auth rest api
Post: myth-auth rest api

I work with myth-auth authentication system for my web project, now I need to work with myth-auth authentication for rest api. how do start rest api with myth-auth?! (ie: login, how do work with myth...
1,559 Views
1 Replies
07-30-2020, 03:46 AM
cilux
    Thread: auto load header menu data to each page
Post: RE: auto load header menu data to each page

thanks, your mean is: In BaseController.php: PHP Code: -- $model = new ArticleModel(); $this->data['header'] = $model->yourFunction(); -- and in Home.php or another controller: PHP Co...
3,098 Views
4 Replies
07-20-2020, 06:42 AM
cilux
    Thread: auto load header menu data to each page
Post: auto load header menu data to each page

Hello, I have header menu json data(from MenuModel.php): PHP Code: -- [{"text":"Opcion3","href":"","icon":"fas fa-bell","target":"_self","title":""},{"text":"Home","href":"http://home.com","icon"...
3,098 Views
4 Replies
07-20-2020, 05:59 AM
cilux
    Thread: csrf regenrate in ajax post
Post: RE: csrf regenrate in ajax post

InsiteFX Wrote: (05-16-2020, 03:14 AM) -- Read this. Codeigniter CSRF valid for only one time ajax request (https://stackoverflow.com/questions/38502548/codeigniter-csrf-valid-for-only-one-time-ajax...
4,851 Views
5 Replies
05-16-2020, 05:28 AM
cilux
    Thread: csrf regenrate in ajax post
Post: RE: csrf regenrate in ajax post

Sorry but whats your mean ?!
4,851 Views
5 Replies
05-16-2020, 12:46 AM
cilux
    Thread: csrf regenrate in ajax post
Post: csrf regenrate in ajax post

I have this code for post data using ajax: Code: --         $("selector").select2({             minimumInputLength: 3,             theme: 'bootstrap4',             width: 'auto',             a...
4,851 Views
5 Replies
05-15-2020, 01:27 PM
cilux
    Thread: return insert id from database insert function
Post: return insert id from database insert function

I have this function for insert data to database: PHP Code: --     public function insertAlbumData(array $data)     {       $this->db->table('gallery_albums')             ->insert($data);     }...
2,094 Views
2 Replies
04-21-2020, 04:20 AM
cilux
    Thread: form data validation and data value variable
Post: form data validation and data value variable

I have this controller for insert data: PostController: PHP Code: --     public function store(){         if($this->request->getMethod('POST'))         {             $rules = [             ...
1,328 Views
1 Replies
04-11-2020, 02:02 PM
cilux
    Thread: public $filters except login page
Post: public $filters except login page

I work with filter method for check admin users authentication like this: PHP Code: -- class Filters extends BaseConfig { // Makes reading things below nicer, // and simpler to change out scr...
6,647 Views
3 Replies
03-28-2020, 03:08 PM
cilux
    Thread: put method not working
Post: RE: put method not working

jreklund Wrote: (03-21-2020, 07:51 AM) -- Have you checked the generated source code for your action="". Where does it go? -- Yes, when i change/replace put to post(in routes and form action) every...
4,917 Views
4 Replies
03-23-2020, 02:07 AM
cilux
    Thread: put method not working
Post: put method not working

I have this route for update my user data: PHP Code: -- $routes->put('/admin/users/(:num)/update', 'Admin\UserController::update/$1', ['as' => 'update']); -- in  UserController: PHP Code: --...
4,917 Views
4 Replies
03-21-2020, 05:09 AM
cilux
    Thread: set cookie not work before response redirect
Post: set cookie not work before response redirect

I need to add remember_me key into cookie. but when i put set_cookie before redirect, set_cookie not working and not set data: PHP Code: --     public function loginPost()     {         $rules = [ ...
1,692 Views
0 Replies
03-16-2020, 01:40 AM
cilux

Theme © iAndrew 2016 - Forum software by © MyBB