Re: how layout and pages are related..plz explain

2008-07-21 Thread Siebren Bakker
are you sure that the contents_for_layout is in the body section of your default.ctp layout? should be snip (add whatever here) (add more if you need it) In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Sat, Jul 19, 2008 at 05:53, vibhor

Re: The CSS&Layout problem to a newbie of CAKEPHP.

2008-07-19 Thread Siebren Bakker
to link to them: css('name_of_stylesheet'); ?> Hope this helps a little. -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Sat, Jul 19, 2008 at 09:09, Aquarius.Chifi <[EMAIL PROTECTED]> wr

Re: Auto poppulated validation error messages

2008-07-17 Thread Siebren Bakker
me of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Thu, Jul 17, 2008 at 02:05, Sizofrenick <[EMAIL PROTECTED]> wrote: > > Hi there all, > > I am new with CakePHP and have a question. I find FormHelper very > useful, but I have a customization

Re: validating non-model form fields

2008-07-16 Thread Siebren Bakker
27;confirm_email' => array( 'rule' => array('identicalFields', 'email'), 'message' => 'E-Mail addresses must match') Hope this helps! In the name of Life, Liberty, and the pursuit of my sanity. Siebren

Re: Form Helper - Date Problem

2008-07-16 Thread Siebren Bakker
Would you mind posting the code you have that is creating this data as well, so we can see if there are any discrepancies? It would help diagnosing the issue. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Wed, Jul 16, 2008 at 06:57, liammc87

Re: strange problem --> Missing table

2008-07-14 Thread Siebren Bakker
done! In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Mon, Jul 14, 2008 at 14:25, puneetratan <[EMAIL PROTECTED]> wrote: > > Hello > > In the config file of cake php , there is an option for Cake Cache > true and false, and mak

Need help with foreign keys in setting up a messaging system

2008-07-12 Thread Siebren Bakker
to this. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email t

Re: the questions rarely answered. why?

2008-07-11 Thread Siebren Bakker
if nothing than to point people in the right direction. I know I've been helped a lot through the group, and I've helped others with things they didn't know. It's a kind of mutual give-and-take here. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum

Re: how to get controller object in my layout when using cakaphp 1.2

2008-07-10 Thread Siebren Bakker
$this->params['controller'] should be able to get the name of the controller for you :-P Hope that's what your looking for! Good luck! In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Thu, Jul 10, 2008 at 05:57, babar <[EM

Re: Linking to RSS feeds?

2008-07-09 Thread Siebren Bakker
looking through the html.php file source. -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Wed, Jul 9, 2008 at 15:02, Jonathan Snook <[EMAIL PROTECTED]> wrote: > > > Well, I think including something that is browser-specific is

Linking to RSS feeds?

2008-07-09 Thread Siebren Bakker
functionality to do add this to a cake application, or layout. Does anyone know if there are any plans to do so? ¤«§»¤ In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are

Re: Cakephp 1.2 App::import

2008-07-07 Thread Siebren Bakker
In 1.2RC1, when using uses(), I get a deprecated warning, so I'm assuming that uses will be removed in the near future, as App::import() replaces it completely in the new system. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Mon, Jul 7, 2008

Re: Complex password? on bakery?

2008-06-28 Thread Siebren Bakker
d the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Sat, Jun 28, 2008 at 09:09, Louie Miranda <[EMAIL PROTECTED]> wrote: > Yeah. I figured. > > On Sat, Jun 28, 2008 at 10:07 PM, Marcin Domanski <[EMAIL PROTECTED]> > wrote: > >> >> you can do some googl

Creating cake source code documentation?

2008-06-25 Thread Siebren Bakker
s as well. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake

Re: using a multiple table for in a single component

2008-06-25 Thread Siebren Bakker
ife, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Wed, Jun 25, 2008 at 00:44, kaushik <[EMAIL PROTECTED]> wrote: > > I have a product table and a category table. primary key of category > table i.e. category_id is foreign key. so in product module i want to &g

Re: Problem baking, cannot see tables

2008-06-25 Thread Siebren Bakker
If you are using debug level >1, your cache might be interfering with bake seeing your database, as it is running off a cached model list. Try removing the files in /app/tmp/cache/models, see if that works out for you. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bak

Re: prob in template

2008-06-23 Thread Siebren Bakker
Exactly, you need to use separate files for different layouts. I have a default.ctp and a game.ctp for logged in and not logged in users. To switch between the two, in your controller, use $this->layout('layoutname');. In the name of Life, Liberty, and the pursuit of my sanity. S

Re: Missing database table

2008-06-21 Thread Siebren Bakker
@Joel I'd never fully read the API documentation on Model::find and Model::findAll before, thanks for the advice, find('all') works a lot better for what I needed done! In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Fri, Jun 20, 2008

Re: main views and sub views?

2008-06-20 Thread Siebren Bakker
ts/news When you go there, you should see all of the information contained in the layout, and wherever you placed the tag, that is where everything that you placed in your app/views/posts/news.ctp file will be contained. Hope this explains things! In the name of Life, Liberty, and the purs

Re: password not hashed by edit user

2008-06-20 Thread Siebren Bakker
y could be added, it would cut out a decent amount of code scattered around my controllers from it. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Fri, Jun 20, 2008 at 10:22, leo <[EMAIL PROTECTED]> wrote: > > When I create a user,

Re: Missing database table

2008-06-20 Thread Siebren Bakker
name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Fri, Jun 20, 2008 at 08:58, Marcelius <[EMAIL PROTECTED]> wrote: > > If you turn debug mode to 1, cache is refreshed so any changes in the > database will be recognized :-) > > On 20 jun,

Re: Missing database table

2008-06-20 Thread Siebren Bakker
. Siebren Bakker(Aevum Decessus) On Fri, Jun 20, 2008 at 03:10, leo <[EMAIL PROTECTED]> wrote: > > I guess if bake doesn't work, Cake can't see the tables. Make sure > they are defined in the same database as users (!) > > Check your database config file in app/confi

Re: inserting more layers into cake php

2008-06-20 Thread Siebren Bakker
anize, this is not really an issue. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Fri, Jun 20, 2008 at 00:48, SajjadRaza <[EMAIL PROTECTED]> wrote: > > Hi > i am novice to php and cake i have shifted from java and now in fix > about lka

Re: 2 Applications shared/seperate databases.

2008-06-20 Thread Siebren Bakker
id. To fix this problem, I searched and found that if you clear the contents of your app/tmp/cache/models/ folder, cake will rebuild all associations and database configurations on the next refresh, fixing that problem. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevu

2 Applications shared/seperate databases.

2008-06-19 Thread Siebren Bakker
. Does anyone know who I could go about doing this, or could point me out to any examples of anyone doing something similar to this. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this

Re: not working

2008-06-12 Thread Siebren Bakker
make sure that your webroot in Apache or IIS(Whichever you're using) is set to /app/webroot, instead of the cake directory itself, and that should fix the issue. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Thu, Jun 12, 2008 at 20:05, M

Re: Entry data with a . "dot" sign

2008-06-12 Thread Siebren Bakker
'rule' => 'isUnique', 'message' => 'Username is in use. Choose another.' ) ) The way this works, the username must be A) Unique, B) between 5 and 30 characters, and C) of the character

Re: comment indented what suggestion?

2008-06-11 Thread Siebren Bakker
pagination, it really depends on what version of CakePHP you are using, as to how it's implemented. Perhaps you could give us some more information as to exactly what you are looking for? In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Wed, Jun 11

Re: $html->image paths

2008-06-05 Thread Siebren Bakker
ath Path to the image file, relative to the app/ > webroot/img/ directory." > is this configurable? I don't want photos in the same place as > graphics. > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~--

Re: whitespace

2008-06-03 Thread Siebren Bakker
Try running this shell to find leading/trailing whitespaces in your > php files: > http://bin.cakephp.org/view/1837474952 > > On Jun 3, 3:23 am, "Siebren Bakker" <[EMAIL PROTECTED]> wrote: > > I'm not sure exactly what's causing this issue, but I am runn

Re: whitespace

2008-06-02 Thread Siebren Bakker
> > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, sen

External Applications in subdirectories?

2008-06-02 Thread Siebren Bakker
-direct to the proper locations? -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this g

Extra newline at beginning of files?

2008-05-21 Thread Siebren Bakker
In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@google

Re: Session problem Firefox

2008-05-18 Thread Siebren Bakker
e 1.9 and tried every solution given on this forum. > > I hope someone can help me! > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you

Re: Session problem Firefox

2008-05-17 Thread Siebren Bakker
I haven't got any redirects to the login page in the controller or my > app_controller a bit confusing. > > I'm using cake 1.9 and tried every solution given on this forum. > I hope someone can help me! > > > > -- In

retrieving data from un-linked table?

2008-05-17 Thread Siebren Bakker
he name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroup

Re: Data Validation with Multiple Rules Doesn't Display Multiple Errors

2008-02-23 Thread Siebren Bakker
, array('controller' => 'customs', 'action' > => 'testValidate')); > echo $form->input('my_field'); > echo $form->create('submit'); > > If both the minlength and alphanumeric rules fail, only the > minlength&#x

Undefined Index in $this->Data?

2008-02-23 Thread Siebren Bakker
tRuleSet]; 120 return parent::validates($data)?true:false; 121 122 } and a print_r of the $this->data array produces: Array ( [User] => Array ( [email] => [EMAIL PROTECTED] [confirm_email] => [EMAIL PROTECTED]

Re: Automagically

2008-02-23 Thread Siebren Bakker
There's a proper channel for critique - the mailing list isn't it. > 2. Since this is an open source project, there's a certain amount of > civility we require in our communications. > > Thanks, > > John > > > > -- In the name of Life, Liberty, and

Re: saveField issues

2008-02-20 Thread Siebren Bakker
Customer`.`id`) > WHERE `Lightbox`.`id` = '21' LIMIT 1 > > SELECT `LightboxImage`.`id`, `LightboxImage`.`image_id`, > `LightboxImage`.`lightbox_id`, `LightboxImage`.`price_id`, > `LightboxImage`.`quantity` FROM `lightbox_images` AS `LightboxImage` > WHERE `LightboxImage`.`lightb

Re: Email Component Advantages

2008-02-20 Thread Siebren Bakker
the lack of crankiness will cost you > > > > - its a fine line between a real question and an idiot > > > > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/http://blog.samdevore.com/cakephp-pages/i-cant-ba

how to incorporate site redirection into cakephp's default .htaccess?

2008-02-18 Thread Siebren Bakker
who want more information is: http://www.tummblr.com/web-development/redirect-visitors-from-high-traffic-sites-like-digg-to-coralcdn-mirror-using-htaccess/ any ideas? -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -BEGIN GEEK CODE BLOCK- Version:

Re: Accessing schema in view

2008-02-18 Thread Siebren Bakker
but I could not find a solution: > > > > How can I access the schema of a model in a view? > > > > Tomka. > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d- s+: a20 C

Re: Validate one or two fields?

2008-02-13 Thread Siebren Bakker
=array()) > { > $this->validate = $this->$validationSets[$this->currentRuleSet]; > parent::validates($data); > } > > > } > > } > > > Also this can be put on a behavior. > > > On Feb 7, 2008 2:25 PM, Siebren Bakker <[EMAIL PROTECTED]>

Re: Setting an alternate view

2008-02-13 Thread Siebren Bakker
; > > class UsersController extends AppController > > { > > function login() { > > if (...) > >// default: render with view login.thtml > > else > > // render with a different view, f.e. login_error.thtml > > > > } >

Re: 500 errors with Dreamhost?

2008-02-13 Thread Siebren Bakker
PHP 5.2.2 enabled, > did you have to modify the default htaccess files that come with Cake > for it to work? > > I have my domain pointing to /home/yoursusername/yourdomain.com/app/ > webroot/ in the web panel. > > > -- In the name of Life, Liberty, and the pursuit of my sani

Re: radio button

2008-02-12 Thread Siebren Bakker
ender . Hope that's not too confusing. On Feb 10, 2008 10:45 PM, bob <[EMAIL PROTECTED]> wrote: > in the controller i mean > > > On Feb 10, 2008 7:45 PM, bob <[EMAIL PROTECTED]> wrote: > > > In cakephp 1.2, how do i determine which radio button the user selected? &

Re: othAuth on 1.2

2008-02-10 Thread Siebren Bakker
ts to e.g. > http://localhost/users/admin/campanas/view/36, > when it should be redirecting to http://localhost/admin/campanas/view/36. > > Do you know the solution? Please tell me > > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum D

Re: user authentication example...login redirects

2008-02-08 Thread Siebren Bakker
on someone's blog that it's now depreciated, but with > no clue as to what by. I know there's a bunch of new validation types > such as credit card in the new system, but I can't seem to find "not > empty" anymore. Is this depreciated or not? > > Than

Re: user authentication example...login redirects

2008-02-08 Thread Siebren Bakker
o $this->Session in the controller. That's what you can use > to store the information about the user who's logging in, so it > remembers them as they move around the site. > > Hope that helps, > Zoe. > > > -- In the name of Life, Liberty, and the pursuit of my san

Re: user authentication example...login redirects

2008-02-07 Thread Siebren Bakker
ata); > $this->redirect('login'); >} >} >} > > what am I doing wrong? > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -BEGIN GEEK CODE BLOCK- Version: 3.

Re: Validate one or two fields?

2008-02-07 Thread Siebren Bakker
o the controller On Feb 6, 2008 10:18 PM, Rgarg <[EMAIL PROTECTED]> wrote: > > > do you want to cum pair user written data with database?? > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -BEGIN GEEK CODE BLOCK- V

Validate one or two fields?

2008-02-06 Thread Siebren Bakker
know of a way to just validate a select amount of data? -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d- s+: a19 C UL++ P L++ !E W++ N(-) o? K? w(+) O? M-- V? PS+ PE Y- PGP- t+ 5? X-

Re: why does the form error appear above and below the input field?

2008-02-06 Thread Siebren Bakker
method's second > argument > > array > > > > Code is below... > > > > > > > > > > > > View > > > > > > echo $form->error('username'); > > > echo $form->input('user

Re: Help with data validation...

2008-02-02 Thread Siebren Bakker
VALID_NOT_EMPTY, > 'password' => VALID_NOT_EMPTY, > 'verify' => VALID_NOT_EMPTY, > 'email' => VALID_EMAIL, > 'website' => VALID_NOT_EMPTY > ); > > How would I make it so 'verify' has to be the same value as passwo

Re: Input form helper 'empty' => true not work

2008-01-31 Thread Siebren Bakker
w, I know only that don't work :), the possibility are the > code is not aligned with docs and vice-versa or there is a bug. > > Now, I implemented the workaround that ad7six suggested. > > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker

Re: Simple 1.2 Beta Form Example?

2008-01-29 Thread Siebren Bakker
6vGmf0LAOllP73vM2/QCfYrWZ JO/Dc+5flmsjMslfcV6WiLs= =lm4P -END PGP SIGNATURE- On Jan 29, 2008 5:07 PM, red <[EMAIL PROTECTED]> wrote: > > Why just don't bake this simple example? > > > On 29 Sty, 22:33, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: &g

Re: Global View Variable?

2008-01-29 Thread Siebren Bakker
>set('roles', array('', 'Administrator', 'Supervisor', > > 'Moderator', 'Testing Team', '')); > > } > > > > } > > > > What are you trying to achieve? Maybe that would give us more ideas. > > > > Cheers, >

Global View Variable?

2008-01-29 Thread Siebren Bakker
uses it? i.e., the array('', 'Administrator', 'Supervisor', 'Moderator', 'Testing Team', ''); -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -BEGIN GEEK CODE BLOCK- Version: 3.12

Re: 1.2 beta form validation

2008-01-26 Thread Siebren Bakker
pr('beforeValidate'); >pr($this->data); >pr($this->validateErrors()); >exit(); >} > > I get no output form beforeValidate(), not any errors for username

Re: Validate alphaNumeric with spaces

2008-01-26 Thread Siebren Bakker
ddress'), > > 'suburb' => array('rule' => 'alphaNumeric', 'message' => > 'Suburb > > contain only letters, including area code'), > > 'state' => array('rule' => &#

Re: Oth-Auth in 1.2 not passing data array?

2008-01-16 Thread Siebren Bakker
ok, I've finally figured out the issue. In the othAuth component, in the $allowedLoginChars array, if you try using a " ", or space as a character, it treats that as an empty string, and it breaks the entire component..sorry if I confused anyone. On Jan 16, 2008 3:18 PM,

Oth-Auth in 1.2 not passing data array?

2008-01-16 Thread Siebren Bakker
r->data[$this->user_model])) 229{ 230 $params[$this->user_model] = $this->controller->data[$thi 231 return 1; 232} 233 //return $this->_login($params); 234} yet no matter what, it still outputs the a 0 in $auth_return, showing that the data, params,

Re: Session lost using kcaptcha, after upgrading to new 1.2.0.6311

2008-01-10 Thread Siebren Bakker
ity level to low and tested some > > > changes... but it doesn't work. sessions are lost after changing page. > > > > > Anyone knows what's the problem? > > > > > thank you > > > > -- In the name of Life, Liberty, and the pursuit of my

Re: Where to call the form helper Save function in cakephp 1.2

2008-01-10 Thread Siebren Bakker
for One model > class , One corresponding controller class with multiple actions. If > yes, can anybody please tell me how? > > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d- s+: a1

Re: othAuth looses session - upgrading to new 1.2.0.6311 (2008)

2008-01-09 Thread Siebren Bakker
t component / system. > > > cheers > > Luke > > On Jan 8, 10:57 am, hoerbuchhoerer <[EMAIL PROTECTED]> wrote: > > solved similar issue with using database sessions, carefully search > > for session_start() in vendor files, remove them all. > > hoe

Re: Error message

2008-01-08 Thread Siebren Bakker
gt; -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d- s+: a19 C UL++ P L++ !E W++ N(-) o? K? w(+) O? M-- V? PS+ PE Y- PGP- t+ 5? X- R tv-- b++ Di D+ G+ e h! r y- -

Re: Paginate obtained array of another controller

2008-01-08 Thread Siebren Bakker
ns > ')); > > And in PersonsController: > > Function getpersons () { > return $this -> Person -> findAll (); > } > This works well, but what I want is to paginate the list of persons > and I dont know how can I do it. > What have I to change or add to o