The problem looks to be the cause of a fix in AuthComponent.
https://trac.cakephp.org/ticket/6211
https://trac.cakephp.org/changeset/8156
The fix does not seem fully compatible with parseExtensions.
On May 20, 8:32 am, Martin Westin wrote:
> Hi,
> Did anyone else see this thing after updat
Hi,
Did anyone else see this thing after updating to 1.2.3?
http://example.com/?ext=html
After logging in I am redirected to the index page, as expected. But
now I see a query string in the url. Does anyone know where it came
from and, more importantly, how to get rid of it. I looked through the
Thanks
-
Jorge Garifuna
Sent from iPhone
On May 19, 2009, at 7:26 PM, JamesF wrote:
>
> it took me a few tries but it can be done.
>
> http://bakery.cakephp.org/articles/view/simple-fck-editor-helper
>
> On May 19, 4:16 pm, Jorge Garifuna wrote:
>> Instead of the regular text area, I would li
one thing to remember about using regex or cake's built in validation
is that no regex function will work in all scenarios. you shoul err on
the side of being more permissive. in the case of email fields i use a
notEmpty and maxLength and maybe run it through sanitize but nothings
worse than a val
it took me a few tries but it can be done.
http://bakery.cakephp.org/articles/view/simple-fck-editor-helper
On May 19, 4:16 pm, Jorge Garifuna wrote:
> Instead of the regular text area, I would like to display a WYSWGY
> editor like FCK in the edit/add view.
>
> Is there available sample code t
I have a function where it saves data to the database and emails a user.
The function is called using AJAX
The email is going to me so its a valid email address for testing purposes,
I have debug on the save function so I can see the data being saved. AJAX
returns success message, the data is save
I've done it before. but it didn't work..
why?!?
On May 18, 7:19 pm, fain182 wrote:
> in cakephp the view has extension .ctp.. you should put the view in
> /view/posts/view.ctp
>
> On Mon, May 18, 2009 at 5:26 AM, eantz wrote:
>
> > I try to create something part by part. When I try to check th
Hey, thanks for helping with this. Here is my model:
http://bin.cakephp.org/view/1912370055
I thought it seemed backwards but users here said it made sense and
that's what bake gave me so I stopped questioning it. Basically, I
have listings, categories and promotions that all have titles and
bodi
how can i make Relative Pagination like for Example
i have a shoppes and this Shoppes have a products that's belongsTo the
Shoppes
so when i select from the shoppes
i cant make the Pagination for the products ???
so and the Next thing i need to know is
how can i select from class another class
This thread probably has the answers you seek:
http://groups.google.com/group/cake-php/browse_thread/thread/12452ecd7a8be59f/d9d2413b818446bd
On May 19, 3:58 pm, Jorge Garifuna wrote:
> I would like to allow the user to filter posts by status (open,
> corrected, closed) from the index view and h
Found it, thanks.
I had some custom logout code in AppController::beforeFilter() which
was causing the problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to ca
Hi,
It's a little unclear to me how your associations are set up. Does a
Promotion hasMany Title,Body or do Title and Body hasMany Promotion?
My suggestions assume the former.
> Here is the action: http://bin.cakephp.org/view/994290013
With saveAll, there's no need to manually enter the foreign
i've just noticed a weird behavior w/ fatal PHP errors when running
unit tests under CakePHP. if the code I'm testing has, say, a syntax
error in it, the cake console (testsuite) fails out showing no errors
and preventing any errors going to the PHP error log. have others
seen this? if so, any w
Buttons without type of submit don't really do anything without
onClick javascript right? I tried your idea and it just doesn't do
anything. Reset just resets a form. I'd use the Javascript but I'm
not entirely sure to how make that work with Ajax.
On May 18, 5:35 pm, "Gabriel A. Gonzalez"
wr
Yeah, I already solved it with PHP code... The thing I was hanging on
was that the data returned on the form to the controller is not a
DateTime but an array. So when I want to do my $this->data->save()
function, I was unable to calculate the time since all examples use
the DateTimeformat.
I did
Okie doke:
form('purposes','post',array(
'model'=>'Purpose',
'update'=>'purposesData',
'url'=>array(
'controller' => 'purposes',
'action' => 'add',
Yeah, that's exactly how I started out but every time it only returns
the submit. Eventually I hard coded the html just to make sure.
On May 19, 1:55 pm, Brett Wilton wrote:
> You can use something like this in your view (code snips):-
>
>
> echo $form->submit('Save',
> Absolutely:
> Here is the action: http://bin.cakephp.org/view/994290013
> Here is the view: http://bin.cakephp.org/view/1805109334
i think you should save the id in the $data array... like:
$this->data['Title']['id'] = $current['Promotion']['title_id'];
the same for body.. you saveAll($this->da
You can use something like this in your view (code snips):-
submit('Save', array('div'=>false,
'name'=>'submit'));
echo $form->submit('Cancel', array('div'=>false,
'name'=>'cancel'));
?>
end(); ?>
and in your controller :-
if (array_key_exists('cancel', $this
Absolutely:
Here is the action: http://bin.cakephp.org/view/994290013
Here is the view: http://bin.cakephp.org/view/1805109334
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this
Instead of the regular text area, I would like to display a WYSWGY
editor like FCK in the edit/add view.
Is there available sample code to do this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
I would like to allow the user to filter posts by status (open,
corrected, closed) from the index view and have the chosen status
remembered when paginating.
Any source code sample of how to do this would be greatly appreciated.
Jorge
--~--~-~--~~~---~--~~
You re
Hello.
Can anyone help me with hacking findAllThreaded function for version
1.2.x ?
In 1.1.x it looked like it to set the root ID for function:
function findAllThreaded($root = null, $conditions = null, $fields =
null, $sort = null) {
return $this->__doThread(Model::findAll($conditions, $fie
can you put on bin ( http://bin.cakephp.org/ ) the code of the whole
action? and myabe the view?
--
pietro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-
I also tried this: $this->Promotion->title_id = $current['Promotion']
['title_id'];
But it did not work either...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to c
On Tue, May 19, 2009 at 12:21 PM, GreyCells wrote:
>
> Not so much hates, but frustrations when coding new apps (I'm sure
> you've heard them all before, Nate:)
>
> 2. More callbacks in Auth, Session and Email to allow logging + App
> specific behaviour. (via App[Auth|Session|Email])
Excellent s
Is it possible to attach a component to a controller on the fly?
Like this, perhaps:
function nameOfAction(){
$this->attachComponent('RequestHandler');
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
Upvote for this post.
The ACL component was really neat, until I tried to actually use it.
It was more difficult to try and use it than to just roll my own.
Auth Component works great, I wish ACL worked great with Auth.
Also ++ to commenters who asked for more real-world tutorials. The
manual i
not obvious but good to know! it's not in the docs for the find
method, which i think is what paginate uses.
On May 19, 5:33 am, toby1kenobi wrote:
> Ha, I finally figured it out, so in case it helps anyone - the
> following:
>
> $findParams = array(
> 'or' => array
- No callbacks in associative queries
- Lack of (or not up to date) documentation
- Integrating jQuery instead of Prototype may be better, but I think
I'll still write my own js code by hand to have more control over it
anyway
On 8 mai, 15:08, Smelly Eddie wrote:
> I hate that it is a powerful f
O creo que podria simplificarse mas usando:
create('Local',array('action'=>'agregar/'.$empresa['Empresa']['id']));?>
Ya que en la accion del formulario no pones el parametro.
Y olvide las comillas en el mensaje anterior, seria:
y
this->redirect(array('action' => 'lista', *$this->data['Empresa'
Create will only reset the Model object so that new records can be
created. If you pass it a data array containing a primary key it will
assume you want to update that record.
I have also seen suggestions for:
$this->Parametername->create( $this->data['Parametername'] );
$this->Parametername->sav
Hola, creo que hablas español.
En realidad funciona como es de esperarse. Llamas a la accion pasando el
id de la empresa que la accion lo utiliza para obtener los datos pero
luego al generar la vista y enviar el formulario es logico que se pierda
el id de la empresa ya que no figura en ningun la
never mind, discovered that setting the option 'deep' on the email
validation does this..
the ultragenda domain apparently does not allow the check
On 19 mei, 19:19, MrSensitive wrote:
> would someone try to validate this email address??
> ro...@ultragenda.com
> It consistently fails on my devel
would someone try to validate this email address??
ro...@ultragenda.com
It consistently fails on my development environment and also on the
production server
the email address is very real
Many thanks for any insight
regards
Robin
--~--~-~--~~~---~--~~
You receiv
Hello. I want to thank you in advance for your time.
I am trying to make a form and the action that uses has a parameter,
but when I submit the form the parameter disappears
*this is my form:
create('Local',array('action'=>'agregar'));?>
Nombre
Well, I have been using cake for over a year now. It is a great and
powerful framkwork to say the least. It makes a lot of work a lot
easier. But, from experience, it has really crappy oracle support.
There needs to be more support built in. Oracle is complex, yes, but I
cannot even do "User.Table
Not so much hates, but frustrations when coding new apps (I'm sure
you've heard them all before, Nate:)
1. Auth, Session and Email should all be fat models with a thin
component interface if required.
2. More callbacks in Auth, Session and Email to allow logging + App
specific behaviour. (via Ap
Hi brian,
thanks for your response. This is not really a solution I am looking
for. I think the link should still be visible all the time and I can't
imagine that cake and AJAX would not be able to handle this somehow. I
am sure that someone has faced a similar issue before and I am hoping
that t
An AJAX request returns a chunk of HTML (or other data) and isn't
going to handle the redirect properly. The simplest way to deal with
this is to only display the link if the user is logged in.
On Tue, May 19, 2009 at 8:36 AM, Luke wrote:
>
> Hi,
>
> I am still pretty new to CakePHP, so I am sor
On Mon, May 18, 2009 at 11:12 PM, Jules wrote:
>
> Thank you Brian, I wasn't aware that you could write a custom
> validation function.
>
> However, I've tried both methods, and am still having the same
> problem. In both cases, the form comes back with fresh data in it.
>
> I have confirmed tha
As an aside (I don't think it's necessarily related), I recently
upgraded PHP on RHEL from 5.1.6 to 5.2.6 using Jason Litka's repo. It
worked like a charm. Just FYI, in case you have both the desire and
the ability to do so on the CentOS box.
http://www.jasonlitka.com/yum-repository/
On Tue, May
Just note that Gabriel's answer is probably the cleanest way to do it,
but If you would prefer using a PHP function:
http://www.codingforums.com/archive/index.php/t-140522.html
Cancer10's code worked great for me:
Plus you could tweak this code a bit if you would like seconds,
minutes, hours
Oops. Sorry for the 2nd and the 3rd posts.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
What happens when you submit? Stays there? Redirects somewhere else?
Throws errors (if so, which ones)?
In the code you have provided, does "$this->Auth->user()" evaluate to
true?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Muito obrigada Celso, fico content que vc gostou...
Abs
On May 19, 3:10 pm, Celso wrote:
> Parabens !!!
> Ficou muito bom !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, s
Hey Cirstis, thanks for the feedback I like the idea, will see
what i can do in terms on google still being happy with the current
links etc...
On May 19, 3:05 pm, Curtis wrote:
> Looks Good!
>
> only one recommendation.. I suggest playing with routes to exclude the
> word "pages" in your
Thank you Faza, will make a small change in the css to make sure the
text is not hard on the eyes...
On May 19, 2:59 pm, Faza wrote:
> Nice :)
>
> I like the plain design, all seems to work smoothly.
>
> Altho, the grayish text in the "Times" table is a bit hard to read.
>
> Marcus Silva pis
Hi,
I am still pretty new to CakePHP, so I am sorry if this is a silly
issue I am dealing with. Ok, I am working on a site where you have
different sections which require a Login.
I therefore added the below Code into the app_controller
var $components = array('Auth');
var $helpers = array('Htm
Hello everyone,
First of all, excuse my english, i will make all effort for being
clear.
I have a question about ACL and/or Groups.
I created an application with CakePHP with "Users" and "Groups".
Groups are managed by a classic TREE behavior and everything is
working fine.
Users are attached t
Parabens !!!
Ficou muito bom !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+u
James F responded with some advice that worked...
...
rewrite it like this.
$html->link($html->image('/uploads/main_demo.jpg'), $html->url('/
uploads/main_zoom.jpg'), array('title' => 'hello', 'escape' =>
false, 'class' => 'mg_main'));
you shouldn't pass the url as an array. you can pass an ar
Looks Good!
only one recommendation.. I suggest playing with routes to exclude the
word "pages" in your url for cleaner url.
For example: convert msbjj.co.uk/pages/about_us TO /www.msbjj.co.uk/
about_us
Everything else looks cool.
On May 19, 9:59 am, Faza wrote:
> Nice :)
>
> I li
Nice :)
I like the plain design, all seems to work smoothly.
Altho, the grayish text in the "Times" table is a bit hard to read.
Marcus Silva pisze:
> Hi folks,
>
> Been a while since i last posted in the group, but I have just put one
> of my websites online which was developed using cake...
>
Adding the following to acl.test.php cause an error (and an exception):
function testUrlAcoInheritance() {
$this->Acl->allow('Micheal', 'ROOT/tpsReports');
$result = $this->Acl->check('Micheal', 'ROOT/tpsReports/list');
$expected = true;
$this->assertEqual($result, $expected);
}
The problem is th
Adding the following to acl.test.php cause an error (and an
exception):
function testUrlAcoInheritance() {
$this->Acl->allow('Micheal', 'ROOT/tpsReports');
$result = $this->Acl->check('Micheal', 'ROOT/tpsReports/list');
$expected = true;
$this->assertEqual($result,
Adding the following to acl.test.php cause an error (and an
exception):
function testUrlAcoInheritance() {
$this->Acl->allow('Micheal', 'ROOT/tpsReports');
$result = $this->Acl->check('Micheal', 'ROOT/tpsReports/list');
$expected = true;
$this->assertEqual($result,
solved! i don´t know if this is the best way, but assign false to the
ID worked:
$this->data['Parametername']['ParameternameID'] = false;
this is suppose that the create function do this, but it doesn´t for
some reason that i´m not able to see.
--~--~-~--~~~---~--~--
Oh heavens...
Paulos, you also need to configure your Auth properly so your login()
function will be called after your user logs in.
Id est: $this->Auth->autoRedirect = false; in your AppController along
with all the other Auth stuff.
HTH
On May 19, 3:07 pm, andy wrote:
> What displays when y
What displays when you print_r($this->Session) or print_r($_SESSION)?
On May 18, 7:21 am, paulos nikolo wrote:
> it prints this
>
> AuthComponent Object
> (
> [_loggedIn] =>
> [components] => Array
> (
> [0] => Session
> [1] => RequestHandler
> )
>
Hi, in my edit method, sometimes i need to update my fields and
sometimes i need to add new ones. I´m trying to use $this->myModel-
>create() to reset the fields when i need to insert a new row, but
nothing happens, i always get the last ID updated... so the foreach is
updating the last row update
Sorry, in the before filter method :)
John
On May 19, 2:58 pm, Jules wrote:
> function beforeRender() {
> // make logged-in user's details available to ALL pages
> if($this->Session->check('Auth.User.id')) {
> $user = $this->Auth->User();
> $this->s
function beforeRender() {
// make logged-in user's details available to ALL pages
if($this->Session->check('Auth.User.id')) {
$user = $this->Auth->User();
$this->set('logged_in_user', $user['User']);
}
}
--~--~-~--~~~-
Hi folks,
Been a while since i last posted in the group, but I have just put one
of my websites online which was developed using cake...
Would you please take a look and let me know what you guys think...
Its only a simple one but any feedback would be greatly appreaciated.
Brazilian Jiu-Jitsu,
What have you written in the before render method in the app
controller?
John
On May 19, 2:14 pm, Jules wrote:
> Running CakePHP site with Auth.
>
> When I visit /users/login or /users/logout, I end up at /users/login.
> All fine so far. When I try to login, the login fails, and the SQL
> lo
Running CakePHP site with Auth.
When I visit /users/login or /users/logout, I end up at /users/login.
All fine so far. When I try to login, the login fails, and the SQL
log shows;
SELECT `User`.`id`, `User`.`email`, `User`.`password` FROM `users` AS
`User` WHERE `User`.`id` IS NULL LIMIT 1
Not
Great work man!
Out of interest, what are you using for the forums? Did you write them
yourself?
If so, would you consider giving some insight, maybe a write up for
the Bakery or even release some code? ;)
Ayways, top work!
d//t
On May 17, 6:20 am, Miles J wrote:
> I redid one of my old sit
Hi peeps,
I have 2 tables users and profiles and i have put some CRUD in
both.Now what i want is when a user has already created a profile and
he clicks the link to create another one to prevent him from doing
that,without taking him to the add form.furthermore,i want to do the
same when a user t
Ha, I finally figured it out, so in case it helps anyone - the
following:
$findParams = array(
'or' => array(
'MyItem.parent_content_item_id' => $myId,
'MyParentItem.id' => $anotherId,
'MyPare
Hi there,
I am wondering which way one could integrate an CakePHP application
into another application like a CMS. My idea is to leave away all
surroundings like header, footer and html head in my CakePHP view
templates, so I have a content only area. This way I could just php-
include Cake's boo
Hello,
I have userid and password fields and a login button. When I press login
button, if the userid and password are correct I want the page redirected to my
accounts page.
So in app_controller.php, in beforeFilter() I have the following code.
$this->Auth->loginRedirect = '/users/
Using PHP 5.1.6 and mod_rewrite is enabled.
Everything works perfectly (htaccess, error reporting etc...) until
the database.php file is added - as if that's the problem - really
strange.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Absolutely, right about form errors.
On May 18, 4:54 pm, "dr. Hannibal Lecter" wrote:
> Here's another interesting kick in the Matt Groening.
>
> Inability to use FormHelper::error() to show our own errors on the
> fly, i.e. $form->error('Arse.biscuits', 'A pair of women's knickers is
> missing'
http://book.cakephp.org/view/71/Model-Attributes#useTable-436
On May 19, 12:15 pm, Chander Bhan wrote:
> How can i use table raw_06 and model can anyone help me
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake
Anyone got any clues on e, I feel like I'm overlooking some daft
error?
toby1kenobi wrote:
> Thanks for the quick response! I was just about to follow up that post
> and say that it's almost working, but not quite (and maybe the error
> is mine).
>
> Here's (a slightly simplified version of) my c
In the manual they give a pretty good explanation of setup/usage:
http://book.cakephp.org/view/91/Tree
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@g
76 matches
Mail list logo