skip to Main Content

Php – Create Controller Inside a folder in CodeIgniter 4

how do i create a controller inside a folder programmatically using the Spark make command ? i wrote this code: $controllerName = service('request')->getpost('controllerName'); $controllerPath = service('request')->getpost('controllerPath'); $controllerFullPath = APPPATH.'Views/'.$controllerPath; if (!is_dir($viewFullPath)) { mkdir($viewFullPath, 0777, true); } $output = shell_exec('php spark…

VIEW QUESTION

Laravel – Login Route and Controller

My Blade file code is like below. <form action="{{ route('login') }}" method="post" class="row mt-4 align-items-center"> <input type="hidden" name="_token" value="{{ csrf_token() }}"> <div class="mb-3 col-sm-12"> <label class="form-label">Email Address <span class="text-danger">*</span></label> <input type="email" name="email" class="form-control" placeholder="Enter your email"> </div> <div class="mb-3 col-sm-12">…

VIEW QUESTION

Flutter controller through signup button is not sending response back to database and also not showing any response in the console too

this is the signup1.dart function which is taking controllers from signup1 to signup2 void navigateToSignup2() { if (emailController.text.isNotEmpty && fullNameController.text.isNotEmpty && phoneNumberController.text.isNotEmpty && passwordController.text.isNotEmpty) { // Passing data from Signup1 to Signup2 Navigator.push( context, MaterialPageRoute( builder: (context) => SignUp2( fullName:…

VIEW QUESTION

PHP Model Class

Does this usage make sense? Will it cause any problems later? function model($folder, $file) { global $db; if (is_file(path . 'app/models/' . $folder . '/' . $file . '.php')) { require_once(path . 'app/models/' . $folder . '/' . $file .…

VIEW QUESTION
Back To Top
Search