Questions tagged with pagescontroller

0 answers

0 votes

Asked by capo64, on 6/12/10 in Models

Accessing models in PagesController

I don't know if this is the proper way to go about this, but I wanted to make a page to view a cart. I was thinking I would do this in pages controller and it would read the user's session, find the product id's in the cart, and look up...

0 answers

0 votes

Asked by skee, on 3/2/11 in Controllers

No Controller Dump but Warning

With the version 1.2 I get a Controller Dump on the bottom of the page if debug mode was set to 3. With version 1.3.6 I just get this warning:

Warning (4096): Object of class PagesController could not be converted to string...

0 answers

0 votes

Asked by seano, on 13/3/11 in Controllers

No custom "pages" controller?

[Edited to clarify what I'm asking]

I have a table in my DB called "Pages." It has 5 fields:

[id] = int(11), auto-increment, primary key

[title] = varchar(100)

[body] = text

[created] = datetime

[modified] = datetime

When I "bake" an MVC based on this...

2 answers

0 votes

Asked by bigjimmi, on 15/11/11 in Models

How to list all controllers index functions

HI, I've just enabled admin routing and have created a admin_index function in pages. I'd like my adminindex view to list links to each of my controllers respective index views, for example

courses/index

posts/index

manuals/index

etc

Is there a way to...

3 answers

0 votes

Asked by avirup, on 14/4/12 in Models

Issue with the static page redirecting

Hi

I am facing a issue with routing of the static pages.

Here is the routes.php code for routing of static pages


	Router::connect('/', array('controller' => 'pages', 'action' => 'display','home'));

	Router::connect('/pages/*', array('controller'...
<< previous next >>