• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
home controller

#21
ok so i solved the problem with url appending i had in my pages links like user/register/ and if i put /user/register/ i do not have append problem .... i am looking how to solve the problem with home controller now
Reply

#22
(12-09-2014, 02:34 PM)djcata Wrote: ok so i solved the problem with url appending i had in my pages links like user/register/ and if i put /user/register/ i do not have append problem .... i am looking how to solve the problem with home controller now

If you change your home controller like this:

PHP Code:
<?php
class Home extends Controller {

 
   function __construct(){
 
       parent::Controller();
 
       //$this->output->enable_profiler(TRUE);
 
   }

 
   public function all_newsletters(){
 
       var_dump('Test');
 
       //$this->load->view('all_newsletters',array());
 
   }


What is the output?
Romanian CodeIgniter Team :: Translations :: Comunity :: Developers
http://www.codeigniter.com.ro
Reply

#23
problem is : if i put $this->output->enable_profiler(TRUE); in base Controller class of CI framework so all controllers use it why and what does it means that when i go to /home/all_newsletters/ i do not get the profile info ? is not served by a controller ?
Reply

#24
(12-09-2014, 02:40 PM)djcata Wrote: problem is : if i put $this->output->enable_profiler(TRUE); in base Controller class of CI framework so all controllers use it why and what does it means that when i go to /home/all_newsletters/ i do not get the profile info ? is not served by a controller ?

Can u send me your app true dropbox or something?
Romanian CodeIgniter Team :: Translations :: Comunity :: Developers
http://www.codeigniter.com.ro
Reply

#25
if i put var_dump('Test'); nothing changes
Reply

#26
i cannot send it now
Reply

#27
(12-09-2014, 02:45 PM)djcata Wrote: i cannot send it now

The home controller is in the controllers directory right?

What is the name of the file? home.php?

The class of controller shouldn't be uppercase?

If you try instead of all_newsletters() the index() method still no lock?

Can u please paste the routes you have in your route.php?
Romanian CodeIgniter Team :: Translations :: Comunity :: Developers
http://www.codeigniter.com.ro
Reply

#28
yes is in controller folder
file is home.php
i do not know if it should be uppercase but i have others with lowercase that works

if i try /home/index i get the same problem

$route['default_controller'] = "home";
$route['scaffolding_trigger'] = "scaf";

i discovered that /home/index and /home/all_newsletters serves me a static html file

(12-09-2014, 02:47 PM)Dracula Wrote: The home controller is in the controllers directory right?

What is the name of the file? home.php?

The class of controller shouldn't be uppercase?

If you try instead of all_newsletters() the index() method still no lock?

Can u please paste the routes you have in your route.php?
Reply

#29
(12-09-2014, 02:54 PM)djcata Wrote: yes is in controller folder
file is home.php
i do not know if it should be uppercase but i have others with lowercase that works

if i try /home/index i get the same problem

$route['default_controller'] = "home";
$route['scaffolding_trigger'] = "scaf";

i discovered that /home/index and /home/all_newsletters serves me a static html file



(12-09-2014, 02:47 PM)Dracula Wrote: The home controller is in the controllers directory right?

What is the name of the file? home.php?

The class of controller shouldn't be uppercase?

If you try instead of all_newsletters() the index() method still no lock?

Can u please paste the routes you have in your route.php?


And the page is blank, no error?
If you look at the source of the blank page what contains?
Try to access it directly like www.site.com since home is the default controller.
But if you create a new controller, let's say test.php and in it you paste this:

PHP Code:
<?php

class Test extends Controller

{
    
    public 
function index() 
    {
        echo 'Test controller';
    }



And access www.site.com/test - what is the output?

Do you have skype?
This is my id: ghostway.solutions
For better comunication.
Romanian CodeIgniter Team :: Translations :: Comunity :: Developers
http://www.codeigniter.com.ro
Reply

#30
no the page is not blank , it returns me a pge that is in /public_html/ folder where the system folder is

directly it works , if i go to www.mysite.com is ok , it goes to home.php (loaded by the index function in home controller) but if i go to www.mysite.com/home/index i get details.html page

if i go to http://www.site.com/test i get The requested URL /test/ was not found on this server.


i sent you a message on that id , my id is djcatax
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.