Re: webroot shows in http url

2007-08-19 Thread Dave J
Hey Matt, check your Apache http.conf file... make sure that DocumentRoot is pointing to the /cake/app/webroot dir On Aug 20, 6:31 am, Matt <[EMAIL PROTECTED]> wrote: > I put some scaffolding together for a small project. I used bake: > > -project projectname > -app projectname > > and created

webroot shows in http url

2007-08-19 Thread Matt
I put some scaffolding together for a small project. I used bake: -project projectname -app projectname and created MVCs and so on. Now when viewing the site I keep seeing webroot show up in the url (i.e. example.com/webroot/articles/view/1 instead of example.com/articles/view/1 Any idea of wh

Redirect Problems

2007-08-19 Thread dakine
I was doing the Simple Authentication in the manual and after following everything and trying various fixes I have given up and retreated to the CakePHP Group for help. The redirect doesn't appear to be working, I've tried printing some output to make sure that I am getting upto where the redirec

Re: Model not found?

2007-08-19 Thread peterhf
Right on! I have a list of nine other models used by the talent_controller and I had forgotten to add the TalentDelail model to the list! "The devil is in the details"!! Thanks for your help. Peter - On Aug 19, 3:40 pm, housebolt <[EMAIL PROTECTED]> wrote: > The name of your model doesn't corr

Re: othAuth component v0.5.4.5

2007-08-19 Thread Baz
Tried that, didn't really work out. Had to backtrack to obAuth, because I really needed something to work and work now. Oh well. One day I hope someone writes a "For Dummies" tutorial. -- Baz L Baz Web Development http://WebDev.KevinLloyd.net/ On 8/19/07, CraZyLeGs <[EMAIL PROTECTED]> wrote: > >

can't get index.php page to show in color and images

2007-08-19 Thread sixs
HI, I'm trying cakephp again. I can get cakephp index.php page to display after installing wamp and cakephp. I can get the message that it finds mysql database.But I change the allowwrit is set to All in http[d.conf. as Options FollowSymLinks AllowOverride All Order deny,allow D

manually calling __construct() on CakeSession

2007-08-19 Thread Adam Royle
Hi all, I am having some issues with IE6 thinking it needs to restart the session, and to prevent this from happening I want to pass $start = false to my session when it is initialised. How can I do this from a single controller (or action)? class CakeSession extends Object { ... funct

Re: HtmlHelper and html entities

2007-08-19 Thread housebolt
All fixed! : ) On Aug 19, 4:02 am, nitifixis <[EMAIL PROTECTED]> wrote: > Hi! > > I'm using the htmlhelper in my cake 1.1 app and I'm having problems > with strings with html entities. Example: > > $html->submit('télécharger'); > > cake is replacing all & symbols with & entities. How am I suppo

Re: Model not found?

2007-08-19 Thread housebolt
The name of your model doesn't correspond with your controller. Your controller name should be talent_detail_controller if you want to keep it that way, but I'm guessing you want it to show up in your browser as /talent/. So, in order to fix this you'll want to add $uses = array('TalentDetail');

Model not found?

2007-08-19 Thread peterhf
A table in the db: talent_details The model: class TalentDetail extends AppModel { var $name = 'TalentDetail'; var $primaryKey = 'recordID'; } In the controller talent_controller: $this->TalentDetail->id = 10; $result = $this->TalentDetail->exits(); Result: Fatal error: Call to undefined

Re: Updating an existing db record.

2007-08-19 Thread peterhf
I got it, "$this->User->recordID = $userID;" should read "$this->User- >id = $userID;". Peter - On Aug 19, 10:07 am, peterhf <[EMAIL PROTECTED]> wrote: > I though that I understood how Nodel::save works but I am unable to > get an update to work. > > class User extends AppModel > { >var $nam

Updating an existing db record.

2007-08-19 Thread peterhf
I though that I understood how Nodel::save works but I am unable to get an update to work. class User extends AppModel { var $name = 'User'; var $primaryKey = 'recordID'; } In a controller I have this: $this->User->recordID = $userID; $this->User->save($this->data['User'], true, arr

Paginator template in cakephp 1.2

2007-08-19 Thread michael lucas
Hi, I was wondering if there was a simple way to set your own style to standard paginator element that appears on each page (i mean the line " Previous | 1 | 2 | 3 | Next"). Can this be done by creating some template file and applying it to paginator element? Or do I have to modify paginator clas

Re: othAuth component v0.5.4.5

2007-08-19 Thread CraZyLeGs
http://bakery.cakephp.org/articles/view/othauth-0-5-documentation On Aug 18, 7:34 pm, "MURAT OBALI" <[EMAIL PROTECTED]> wrote: > Hi Friends, > > I'm a newbie about php and Cakephp. and I need some help. I want to do > a web site using Cake and first of all I want to need an authorization > system

new "With" Associations in a HABTM

2007-08-19 Thread doekie
In the OCPHP sheets (http://www.cakephp.org/files/OCPHP.pdf) there was an example of the use of the new "With" Associations in a HABTM. So it must be easy to get values out-of the join-table in CakePHP 1.2 var $hasAndBelongsToMany = array('Tag'=> arr

Re: HtmlHelper and html entities

2007-08-19 Thread nitifixis
On Aug 19, 3:18 pm, Mech7 <[EMAIL PROTECTED]> wrote: > Doesn't it convert them automatically for you if you try it with the > normal text ? > Using normal text the example above shows t?l?charger. --~--~-~--~~~---~--~~ You received this message because you are

Re: does cake have anything to help create a sortable grid?

2007-08-19 Thread Mech7
There is a non ajax / javascript way but i think it is only available on tables with pagination: sort( 'id' )?> On Aug 18, 5:25 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > Something like prado's TDataGrid, or qcodo's grid, or codeignitor's > rapyd? > > I'm not even all that concerned about the

Re: HtmlHelper and html entities

2007-08-19 Thread Mech7
Doesn't it convert them automatically for you if you try it with the normal text ? On Aug 19, 1:02 pm, nitifixis <[EMAIL PROTECTED]> wrote: > Hi! > > I'm using the htmlhelper in my cake 1.1 app and I'm having problems > with strings with html entities. Example: > > $html->submit('télécharger'); >

1.2 RSS Functionality..

2007-08-19 Thread Mech7
I have tried to make the rss functionality as described here: http://jirikupiainen.com/2007/05/30/creating-rss-feeds-with-cakephp-12/ Only there is one problem, it converts the entire text to html entities, so things like the images stay in the xml, is there anyway to filter these out? Like:

Re: HABTM Does not select extra table :(

2007-08-19 Thread Mech7
When i set the paginate var in the function it only selects the category data, not the article table :( Function: public function category($category_name) { // Pagination settings $this->paginate = array('limit' => 15, 'page' => 1,

HtmlHelper and html entities

2007-08-19 Thread nitifixis
Hi! I'm using the htmlhelper in my cake 1.1 app and I'm having problems with strings with html entities. Example: $html->submit('télécharger'); cake is replacing all & symbols with & entities. How am I supposed to write a string with foreign characters? Any ideas? Thanks in advance --~--~--

Re: Trouble with the translate function "__()"

2007-08-19 Thread jitka (poLK)
- if you have your translations in several files like users.po/mo, posts.po/mo etc, just use proper 'text domain' as 1st argument of __d() function - if you have them in one file default.po/mo, allways use __d('default', ... Split translated texts to several files is not best solution for every p