é isso. No caso local, tudo bem, poderia colocar na pasta webroot. Tava
procurando uma forma alternativa, para poder enviar para o servidor, sacou?
Vinicius
Em 09/09/07, Bill [EMAIL PROTECTED] escreveu:
Galera, resolvido o problema de instalar algo na pasta do cake.
Meu amigo Tulio Faria deu
Pro servidor é a mesma coisa, se coloca na mesma pasta, e para acessar não
rpecisa colocar o caminho todo até esta pasta, usa apenas
www.seusite.com.br/phpmyadmin
q o cake já redireciona via .htaccess
é isso. No caso local, tudo bem, poderia colocar na pasta webroot.
Tava procurando uma
Tenta
$this-Question-getLastInsertId();
On 9/10/07, hostdesigner [EMAIL PROTECTED] wrote:
Eu estou tentando resgatar o último ID gerado pelo INSERT, mas, sempre
dá um erro.
if ($this-Question-save($this-data)) {
$questions_id = $this-Question-lastInsertId();
}
ERRO:
1064: You
On Sep 10, 3:34 am, lemon [EMAIL PROTECTED] wrote:
Hi everybody :)
Well first I want to say, that I've already searched answers to my
question in this group, and in google, but without results :(
My question is: It's possible to associate three different models
with HABTM
On Sep 10, 8:03 am, AD7six [EMAIL PROTECTED] wrote:
On Sep 10, 3:34 am, lemon [EMAIL PROTECTED] wrote:
Hi everybody :)
Well first I want to say, that I've already searched answers to my
question in this group, and in google, but without results :(
My question is: It's possible
Hi,
I've been researching on ACL, trying to find a way to implement this
to authorize users to access the resources in my application.
I've found several tutorials and articles in the Bakery and other
webs about CakePHP and I think I understand de basis and how to
implement access control
Well, it seems as though Cake is being picky...
In my view which is rendered for the AJAX output, if I have this code,
it works:
?php echo $ajax-div('id1', array('style'='display:inline')); ?
test content 1
?php echo $ajax-divEnd('id1'); ?
?php echo $ajax-div('id2',
Hi all,
Anyone an idea how to unit test a helper method which adds stuff to
the head area of an HTML page (the functionality is similar to
HtmlHelper::css() when $inline is set to false)?
Thanks,
daniel
--
Daniel Hofstetter
http://cakebaker.42dh.com
Ok, I found the answer myself, I have to use View::renderLayout().
Cheers,
daniel
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this
On Sep 10, 11:32 am, Daniel Hofstetter [EMAIL PROTECTED] wrote:
Hi all,
Anyone an idea how to unit test a helper method which adds stuff to
the head area of an HTML page (the functionality is similar to
HtmlHelper::css() when $inline is set to false)?
Hi Daniel,
1) call method to test
2)
Any ideas?
On Sep 8, 3:49 pm, NicoE [EMAIL PROTECTED] wrote:
Hello everybody.
We are moving a site made with CakePHP from one development server to
a production server. In the first one, everythink works fine but when
trying to login in the second one, the following error appears:
Fatal
hey everyone,
is there an easy way to read the parent ARO of any given ARO, from
cake-ACL? I didnt see anything about it in the API docs, thus i must
assume its not implemented.. :-(
How do you go about it then?
thanks!
andrew
--~--~-~--~~~---~--~~
You
As far as I understand, the Auth Component is only half of the story. You
still have to set up all that ACL stuff before hand.
If you're up to the task:
http://lemoncake.wordpress.com/2007/07/15/using-aclbehavior-in-cakephp-12/
then
On 9/10/07, Baz [EMAIL PROTECTED] wrote:
As far as I understand, the Auth Component is only half of the story. You
still have to set up all that ACL stuff before hand.
No - you can simply use the Auth by writing isAuthorized method in
your controller OR model and setting the appropriate
Thanks for your answer. I now use:
$view = new View(new AppController());
$this-helper-serverLink('http://example.com/server', false);
$content = $view-renderLayout('');
// here comes a not yet existing regex
Cheers,
daniel
--
Daniel Hofstetter
http://cakebaker.42dh.com
On 9/10/07, Daniel Hofstetter [EMAIL PROTECTED] wrote:
Thanks for your answer. I now use:
Hey - welcome back ;)
T
--
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
On Sep 8, 9:49 pm, NicoE [EMAIL PROTECTED] wrote:
Hello everybody.
We are moving a site made with CakePHP from one development server to
a production server. In the first one, everythink works fine but when
trying to login in the second one, the following error appears:
Fatal error:
On 9/10/07, Baz [EMAIL PROTECTED] wrote:
SoI'll be patiently waiting for Chris or someone else to do that write
up. Since there's not going to be an official Manual for 1.2, I guess I have
to just wait on enterprising bloggers.
There already is a manual for 1.2 and currently in the same
We moved from PHP 5 - MySQL 5 to PHP 4 MySQL 3.
Are there PHP - MySQL version requirements for CakePHP?
On Sep 10, 8:48 am, AD7six [EMAIL PROTECTED] wrote:
On Sep 8, 9:49 pm, NicoE [EMAIL PROTECTED] wrote:
Hello everybody.
We are moving a site made with CakePHP from one development server
On Sep 10, 9:24 am, Fran Iglesias [EMAIL PROTECTED] wrote:
snip
For example. I need to allow several groups to acces to an index
action, but I need to retrieve only the items that are are allowed to
the logged user.
ACL logic does not lend itself easily to mass searching like that, and
I've
On 9/10/07, Matt [EMAIL PROTECTED] wrote:
Chris, I found the AuthComponent mentioned in the release for the
1.2.0.5427alpha:
http://bakery.cakephp.org/articles/view/the-last-alpha-cake
but to be honest I'm not really that confident using an AuthComponent
that is in a alpha release. I
On 9/10/07, Dr. Tarique Sani [EMAIL PROTECTED] wrote:
Chris has already written about it in the past can't recall the exact
URL but something like two pronged auth or two headed auth
Yeah, I did a small post about it:
There you go, that just goes to show that I have no clue what I'm talking
about.
SoI'll be patiently waiting for Chris or someone else to do that write
up. Since there's not going to be an official Manual for 1.2, I guess I have
to just wait on enterprising bloggers.
--
Baz L
Web Development
Hi,
I don't think there is a built-in migration system in cakePHP yet. the
one that is available is written by a cakePHP user.
means it's not official.
I heard that john is playing around with migrations in his sandbox, I
don't know the progress though.
But back to your framework. For it to be
Sorry, I left out something from that statement: ...until 1.2 goes stable.
Yeah, I found it too, but no Auth stuff.
Two-Headed Application Authentication in CakePHP 1.2 :
http://www.littlehart.net/atthekeyboard/2007/07/28/two-headed-application-authentication-in-cakephp-12/
But, I'm too
Try this one: http://www.dhtmlgoodies.com/index.html?whichScript=image-crop
On Sep 9, 9:31 pm, d'plus [EMAIL PROTECTED] wrote:
Chris Hartjes napisał(a):
On 9/9/07, d'plus [EMAIL PROTECTED] wrote:
But can I achieve editing like this
I use a helper for image manipulation. A simple example would be:
?php
class ImageHelper extends Helper
{
var $helpers = array('Html');
var $cacheDir = 'imagecache'; // relative to IMAGES_URL path
function link($file)
{
return $this-Html-link($this-Html-image($file,
On Sep 10, 3:06 pm, nej [EMAIL PROTECTED] wrote:
We moved from PHP 5 - MySQL 5 to PHP 4 MySQL 3.
Are there PHP - MySQL version requirements for CakePHP?
It is not afaik the reason for your specific error but unless you have
MySql version 4.x joins won't work.
hth,
AD
I'd do something like this: create an element for each flash chunk you
want to display, then store the references in the session - separately
from the normal flash data.
/app/elements/flash-email-not-unique.ctp :
div class=flash-chunk
h3Email not unique/h3
p
Someone is already using the email
Thank you AD,
I guess it's better for me to activate the B plan.
In my pre-cakaphp developer life, I wrote a simpler, yet functional,
system. I could try to improve it with some ideas from ACL's. Major
limitations was granularity (it works on group basis) and it was not
hierarchical.
--
Hi. I've got 2 models, n-m, and i'm trying to asociate them with HABTM, so
i wrote this code:
?php
class Media extends AppModel {
var $name = 'Media';
var $belongsTo = array('MediaCategory' = array(
'foreignKey' = 'category_id'
)
Hi,
I used bake before in v1.2 and working alright for me. But after a
certain svn update (don't know which version) my admin_index gives an
error in i18n:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 1048577 bytes) in /cake/libs/i18n.php on line 379
And when I
On Sep 10, 2007, at 7:43 AM, CraZyLeGs wrote:
Hi,
I don't think there is a built-in migration system in cakePHP yet. the
one that is available is written by a cakePHP user.
means it's not official.
I heard that john is playing around with migrations in his sandbox, I
don't know the
table name is plural
medias_rate_requests
On 9/10/07, Sebastian Choren [EMAIL PROTECTED] wrote:
Hi. I've got 2 models, n-m, and i'm trying to asociate them with HABTM, so
i wrote this code:
?php
class Media extends AppModel {
var $name = 'Media';
var $belongsTo =
$form-select
On Sep 10, 5:11 pm, Seth [EMAIL PROTECTED] wrote:
I'm trying to create a dropdown list .. but i can't find a helper for
it like there is for imput, radio, checkbox etc, dose cake has a
helper for it or i'm just missing it from docs ?
Thanks.
Claudiu
I'm trying to create a dropdown list .. but i can't find a helper for
it like there is for imput, radio, checkbox etc, dose cake has a
helper for it or i'm just missing it from docs ?
Thanks.
Claudiu
--~--~-~--~~~---~--~~
You received this message because you
I've seen this in the code on that particular line:
$data = fread($file, 120);
120 ?? I will submit a trac ticket.
On Sep 10, 5:06 pm, Charlie van de Kerkhof [EMAIL PROTECTED]
wrote:
Hi,
I used bake before in v1.2 and working alright for me. But after a
certain svn update (don't know which
Which version of cake ? if cake 1.2 $form-select() (form helper),
$html-select() for cake 1.1 (html helper).
On Sep 10, 5:11 pm, Seth [EMAIL PROTECTED] wrote:
I'm trying to create a dropdown list .. but i can't find a helper for
it like there is for imput, radio, checkbox etc, dose cake has a
Thanks! but i have try that and is not working i get this message
Fatal error: Call to undefined method FormHelper::select() and i
have imported in my controller helpers for Html and Form ... and i
don't get any erros with input or radio on the same form .. but i get
with this select, any hints ?
Note that $form-select it's only for Cake 1.2
On Sep 10, 5:23 pm, francky06l [EMAIL PROTECTED] wrote:
$form-select
On Sep 10, 5:11 pm, Seth [EMAIL PROTECTED] wrote:
I'm trying to create a dropdown list .. but i can't find a helper for
it like there is for imput, radio, checkbox etc, dose
That's not a bug. Data is always returned in this format:
Array
(
[ModelName] = Array
(
[fieldname1] = 'value'
[fieldname2] = 'value'
)
)
Am I correct in my thinking that the reason data is returned this way
is for the scenario where a model
On 9/10/07, Troy Gilbert [EMAIL PROTECTED] wrote:
Am I correct in my thinking that the reason data is returned this way
is for the scenario where a model has an association, e.g. if post had
a user:
Array
(
[Post] = Array ( [field1] = 'value', [field2] = 'value' )
[User] = Array
On 9/10/07, Charlie van de Kerkhof [EMAIL PROTECTED] wrote:
I've seen this in the code on that particular line:
$data = fread($file, 120);
120 ?? I will submit a trac ticket.
Not a bug. is used as a bitwise operator:
http://www.litfuel.net/tutorials/bitwise.htm
1 20 is 1,048,576
So
Well, for anybody in a similar situation, I have solved this problem.
It seems as though the second code only works like so:
?php for ($i=1; $i=$div_total; $i++) { ?
?php echo $ajax-div($div_id . $i,
array('style'='display:inline')); ?test content?php echo $i; ??
php echo $ajax-divEnd($div_id .
Joel Moss also wrote a migrations that integrates with 1.2.
http://joelmoss.info/switchboard/blog/2583:Migrations_v33
One of the best things about Cake is how easy it is to drop these
third party packages into vendors.
The Cake 1.2 core has a alpha version of the CakeSchema that John
refers to.
$this-Acl-Aro-findByParentId()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
I'm trying to use the froms from EXTJS with cake. When my form posts,
this is what is in $_POST:
[action] = submit
[last_name] = Buckner
[first_name] = Mark
Nothing shows up in $this-data. How do I get it into this format?
[data] = Array
(
[User]=Array
Sory : name form inputs like : data[User][first_name];
On Sep 10, 8:27 pm, majna [EMAIL PROTECTED] wrote:
name form inputs like : data[User][first:name].
or
$this-data['User']['first_name] = $this-params['form']
['first_name'];
...
On Sep 10, 8:15 pm, hydra12 [EMAIL PROTECTED] wrote:
name form inputs like : data[User][first:name].
or
$this-data['User']['first_name] = $this-params['form']
['first_name'];
...
On Sep 10, 8:15 pm, hydra12 [EMAIL PROTECTED] wrote:
I'm trying to use the froms from EXTJS with cake. When my form posts,
this is what is in $_POST:
[action] =
I'm wondering how stable 1.2 is currently? I've got a site with a
minimal feature set currently built with 1.1 and we're about to do a
significant rework/expansion of the site over the next month. Would it
make sense to migrate to 1.2? Where can I go to get a good comparison
of 1.1 vs. 1.2 in
hey guys, sorry for my late replay, and cheers for your help.
I'll try to be less cryptic.
Let's take a multilingual website with a specular section in language
1 (italian), and language 2 (english). When in other circumstances I
was in this kind of situation I used to add an extra language
On 9/10/07, Troy Gilbert [EMAIL PROTECTED] wrote:
I'm wondering how stable 1.2 is currently? I've got a site with a
minimal feature set currently built with 1.1 and we're about to do a
significant rework/expansion of the site over the next month. Would it
make sense to migrate to 1.2? Where
That did it! Thanks!
On Sep 10, 1:28 pm, majna [EMAIL PROTECTED] wrote:
Sory : name form inputs like : data[User][first_name];
On Sep 10, 8:27 pm, majna [EMAIL PROTECTED] wrote:
name form inputs like : data[User][first:name].
or
$this-data['User']['first_name] = $this-params['form']
Now i can read the model and i get the relation, but when i try to
save a new one, it saves the first model, but it doesn't save the
relation table. Instead it makes a delete:
1 INSERT INTO `rate_requests` (`user_id`) VALUES (4)
2 SELECT LAST_INSERT_ID() AS insertID
3 DELETE
I abandoned cake few days ago and now I'm using Ruby on Rails because
I think cake takes too much time to evolve and I could wait more one
year to finally use it seriously.
In my opinion you should study RoR before rework/expansion because you
will have immediately results.
On 10 set, 15:50,
On 9/10/07, Ismael S. Kafeltz [EMAIL PROTECTED] wrote:
I abandoned cake few days ago and now I'm using Ruby on Rails because
I think cake takes too much time to evolve and I could wait more one
year to finally use it seriously.
In my opinion you should study RoR before rework/expansion
He's not asking if he should try RoR, he's asking about 1.2 availability.
So if you just wanna fill up your inbox with arguments, go somewhere else. I
know a couple of blogs that would benefit from that.
-MI
---
Remember,
My EURO 0.02
I would personally like to applaud and thank the CakePHP team for remaining
focused on releasing *quality* software rather than pumping up their version
numbers like so many commercial products. I am quite happy to wait as long
as it takes for 1.2 in the knowledge it'll be solid
Show me how to build Digg with Ruby on Rails and I will believe that
RoR is better than a PHP-backed solution. There, I said it.
I certainly agree with that sentiment (hence, why I built the site
with CakePHP in the first place). I've read all of The David's
presentations (and books) on RoR
Just my 2 cents :
I have used 1.1 for my first application now live. I am in development
stage for the second one and I am using 1.2. I admit that I could not
get to 1.1 anymore. Once you tried it, you can't go back ..
I have to migrate my first application, but . well it works and I
wait a
On 9/6/07, francky06l [EMAIL PROTECTED] wrote:
- do not use the name password in the views (login or other user
management views), but another dummy name. Handle this dummy name
(hash or whatever and replace in your password field) prior to save.
Why not use the name 'password'?
Does it
On Sep 10, 2007, at 2:06 PM, Troy Gilbert wrote:
Show me how to build Digg with Ruby on Rails and I will believe that
RoR is better than a PHP-backed solution. There, I said it.
I certainly agree with that sentiment (hence, why I built the site
with CakePHP in the first place). I've read
ummm, I think its the hasOneAndBelongsToMany should be
hasAndBelongsToMany
as far as I know there isn't a hasOneAndBelongsToMany
On Sep 10, 8:01 am, Sebastian Choren [EMAIL PROTECTED]
wrote:
Hi. I've got 2 models, n-m, and i'm trying to asociate them with HABTM, so
i wrote this code:
?php
Actually to the Auth component, not the Security one ..
Cheers
On Sep 10, 10:42 pm, Sonic Baker [EMAIL PROTECTED] wrote:
Aha,
Thanks for clearing that up. I didn't realise you were referring
specifically to the security component. I thought you meant in general user
forms.
Cheers,
Sonic
Well you can use the current language ('Config.language') to set it in
your DB and then use the current language as a condition when
querying. In anyway that will force the user to enter his post in the
language he decided to display the page ...Unless you can detect the
language from the fields
I'll pipe in here to say that the next version of SlideShowPro
Director (1.1) will run on Cake 1.2. We've been in beta testing for a
few months now, and with our current release candidate installed on
north of 500 domains, we haven't seen any Cake related issues. Issues
of my own making, however,
Aha,
Thanks for clearing that up. I didn't realise you were referring
specifically to the security component. I thought you meant in general user
forms.
Cheers,
Sonic
On 9/10/07, francky06l [EMAIL PROTECTED] wrote:
Yes it does, I mean for me .. Because when a user enters his password
I
On Sep 10, 9:42 pm, nerohc [EMAIL PROTECTED] wrote:
snip
$this-data['Media']['Media'] = 15;
That's supposed to be an array of all values to which the RateRequest
is associated. The delete is because before saving the new habtm
associations, cake will delete the old ones (otherwise it would be
Hi,
Correct way to implement above route would be:
Router::connectNamed(array('community_id'));
Router::connect('/:community_id/bulletins/:action/*',
array('controller' = 'bulletins'), array('community_id' =
'[0-9]+'));
On Sep 10, 10:40 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have
Thanks, I was not aware of the new explicit nature.
On Sep 10, 5:15 pm, biesbjerg [EMAIL PROTECTED] wrote:
Hi,
Correct way to implement above route would be:
Router::connectNamed(array('community_id'));
Router::connect('/:community_id/bulletins/:action/*',
array('controller' =
Originally I thought this was an optional new feature, but for those
who were passing arrays with arbitrary named values to Router::url()
and its friends HtmlHelper::url() and HtmlHelper::link(), note that
the parameter must be defined with a $Route-connectNamed() in
routes.php or the router
Hello
I'm writing a little catalog for a client, and setup Section and
Product controllers with admin routing, so /admin/sections manages
sections and /admin/products manages products
I want to point /admin to /admin/sections, but I'm struggling with app/
config/routes.php. Already tried:
Could someone please post the Doxyfile used to generate the api
documentation for cakephp. I am guessing some modification was
required to get it to support several phpdoc style comments.
thanks
David
--~--~-~--~~~---~--~~
You received this message because you
Hi,
I am using google maps in my webpage. I allow the user to set location
of any place on the goolge maps. Google maps allows to use hand cursor
on the map and on clicking the map, a plaemark is set. while user
tries to place placemarks on the map. I want to show a placemark
cursor instead of
This is my situation: the user clicks on an ajax link and this updates
a div with an ajax response, which also contains this form:
form name=postComntForm
?=$form-input('Comment.comment', array('rows'=2, 'cols'=30,
'label'=''));?
?=$form-hidden('Comment.created_at', time());?
First of all, Hello everybody :)
I'm pretty new to formalized ACL stuff as I've been using hand made
code till now and I'm not used to write applications using frameworks.
I've been reading so many confusing things all around and it's not
really clear where to get info, real info.
The moment is
I am getting into CakePHP but I keep struggling with the following
problem:
I have a photo collection and use pagination to order the photos. I
also try to order a list of collections which I can modify, add and
delete.
Both photos and collections are based on rdBloggery.
Because I want to use
I looked all over for there doxyfile. I would love to see it as they
somehow (my guess though alieses) support several phpdoc only style
comments..
David
On Sep 7, 6:52 am, MarkH [EMAIL PROTECTED] wrote:
On Sep 6, 4:53 pm, djiize [EMAIL PROTECTED] wrote:
Where did you see it was parsed
I have a question about where to put some code. In a fishing
tournament scoring system 2 classes are at issue: Catches and
ScoreCard (a ScoreCard is a tournament entry -- standings are the
ordered list of ScoreCards for a given Tournament). The tournament
abstraction is layered over an underlying
Hey guys,
Ive had a similar problem to this on an unrelated cake project before
(unrelated other than being programed by me as pointed out by someone
on IRC last night :P)
Whats happening is if i don't let a page load 100% before i click a
link on it cake will take 1min+ to answer the requests.
My guess would be that outputting binary blobs through a script ( meanign an
http request, a db request, a second http request + output ) for each image
is simply taking a long time.
I wouldn't be surprised if outputting binary data like images was in some
fashion a synchronous event either by
I would put the functionality into your User model. Have a function
addCatch(), which can also look at all the User's ScoreCards and
update them appropriately.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
82 matches
Mail list logo