i fix it by myself
--~--~-~--~~~---~--~~
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 PROTECTED]
For
great, gonna use this one!
for some kinda reason, i didn't take into consideration that you can
use var $components = array( 'Session' ); in a component..
sigh! :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Great guys!
I'm really excited about the new 1.2 features (especially the
multi-language!)! Gonna start playing with it right away!
Tnxs!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
I have a controller, and I want to fetch information from tables.
With scaffold, it works wonderfully.. However I wanna load the
information smartly for my app.
These are my tables:
section:
id
name
field1
field2
layout_id
category_id
category:
id
name
field3
field4
field5
field6
layout:
id
Well, when I set:
zend.ze1_compatibility_mode = Off
everything works fine.
My relations were set like this:
var hasMany = 'TestOne,TestTwo'
then I changed it to
var hasMany = array('TestOne','TestTwo')
but the problem remained.
I didn't know I have to set a className property for each of
Thanks to cakePHP team for making my life easier!!
--~--~-~--~~~---~--~~
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,
First you'll have to create correct associations for your Models (if you
don't know how or too lazy to read the manual, ask again).
Second, try dumping the whole thing you got from the Model-findAll or
findBy... using debug($[modelname]-[functionname]);
You'll see that accessing category.name
Hi
We know what a Model is, or a Controller, or a View. For the three
together however, I'm not sure.
I'm saying Object or MVC Object but its quite vague and not really
correct.
What do you use fore that ?
olivvv
--~--~-~--~~~---~--~~
You received this
Sure, no problem. I'll wait for your feedback.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-Mensaje original-
De:
I think he's referring to how to generally name an MVC View, an MVC Model or
an MVC Controller, using just one term.
I would say call it an MVC Element. Such as:
One of the first things you'll need to learn before proceeding is how each
MVC Element plays a different role on the system...
-MI
Where I can download Spanish Translation?
Cheers
2006/12/25, Shunro Dozono [EMAIL PROTECTED]:
Hello, translators:
FYI:
If you are using FireFox, you can view other translations of
translation.cakephp.org.
For example (Windows platform), download
1) Locale-Switcher Extension for Firefox
Thanks a lot Mariano that sounds good :-)
Mariano Iglesias wrote:
I think he's referring to how to generally name an MVC View, an MVC
Model or
an MVC Controller, using just one term.
I would say call it an MVC Element. Such as:
One of the first things you'll need to learn before
hey adrian,
the table names are right, and work great with scuffold. it works
without scuffold too, i just want to make it more efficient.
on some of the models i used hasmany, belongsto, and hasone. i get the
table category and layout dumped, the problem is that i get all of the
information
Current translations are listed here:
http://translation.cakephp.org/languages
They all come bundled with CakePHP 1.2, which you can download here:
http://cakeforge.org/frs/?group_id=23release_id=171
After downloading you can see bundled language packs at:
cake/locale
The Spanish pack is
you can ask for just the specific fields but if the other fields aren't
too heavy (in terms of bytes of returned content) I don't think there
is a reason to do so. I would avoid using a custom query unless you
absolutely need it. You are able to specify the fields you want
returned without using
I like to call them tiers.
The Model tier handles data, Controller tier handles business logic,
and the View tier displays the data to the user.
Refer to the Cake logo, it has three tiers.
--~--~-~--~~~---~--~~
You received this message because you are
First I will describe my model and then present the way I see to create
the data entry. I'm looking for a user friendly solution.
I'm building an application for a record store so they can send out a
weekly newsletter.
The newsletter can have a blog entry and multiple record albums. Each
And those three tiers are a MVC element, that's right ?
gwoo wrote:
I like to call them tiers.
The Model tier handles data, Controller tier handles business logic,
and the View tier displays the data to the user.
Refer to the Cake logo, it has three tiers.
Together, the three tiers form the MVC pattern.
--~--~-~--~~~---~--~~
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
I'm also wondering about this problem; I want every user to be able to
access his own profile, but not that of other users. I'm guessing
there's a better way to accomplish this than to add a group and
permission for every single user?
[EMAIL PROTECTED] schreef:
Logging in works perfectly. A
Nevermind that second question, I solved it with a few lines of code in
the beforeFilter(). I'm still having problems with the cookie not being
read though...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
Dr. Tarique Sani wrote:
Not to sound like a prick but 400,000 page views are not much for a
typical 3+1 configuration. Given your estimate of higher performance
you say you will reach about 1.2 million page views on the same setup
which again makes me want to know your hardware configuration.
Hi bgmill
The decision to use 3+1 straight off the bat was mainly due to the need
for handling rapid expansion
Thanks for that info, much appreciated. One more question though, when
you say 3+1 do you mean a cluster of 3 database servers and one web
server?
Regards,
Langdon
I have a situation where I know the id of a child, but I need the
parental hierarchy. Using the structure in this (excellent) Bakery
example, I have the following:
1. Art
1. Film
2. Music
1. Jazz
2. Pop
2. History
1. Archaeology
Are all of the items in your hierarchy one type of data? In other
words, are they all in one table with an association of has and
belongs to many?
Ben
On Dec 26, 7:32 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have a situation where I know the id of a child, but I need the
parental
http://cakeforge.org/snippet/download.php?type=snippetid=158
might be a start
On Dec 27, 2:08 am, Tazz [EMAIL PROTECTED] wrote:
First I will describe my model and then present the way I see to create
the data entry. I'm looking for a user friendly solution.
I'm building an application for a
The 'className' property is set automatically based on the name of the
association if you do not specify it. This is probably a bug in PHP.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
Hi, first off, I am new to CakePHP and this group, so I apologize if
this has been covered in prev. discussions (I couldn't find any...)
Couple questions...
Where in the file hierarchy do I put my custom classes that don't
necessarily belong in models or controllers? And how do I load them?
Yes, there is a single table that references itself with a parent_id
field. This is pratically identical to how it laid out in this example:
http://bakery.cakephp.org/articles/view/63
On Dec 26, 5:08 pm, phirschybar [EMAIL PROTECTED] wrote:
Are all of the items in your hierarchy one type of
On 12/27/06, Langdon Stevenson [EMAIL PROTECTED] wrote:
Thanks for that info, much appreciated. One more question though, when
you say 3+1 do you mean a cluster of 3 database servers and one web
server?
I think he said 3 web servers + 1 MySQL, MySQL server is probably a
master and handles
On 12/27/06, bgmill [EMAIL PROTECTED] wrote:
Thanks for your reply
Firstly, I don't claim to be a hardware guru, and my estimations are
purely based on brief conversations with the techs who run the servers.
So with that in mind... all the machines are dual xeon 2.8GHz with 2Gb
of memory.
So, essentially you're trying to find breadcrumbs to your selection?
Maybe a function could be added to the tree helper. Like..
/// Usage in view:
$tree-showCrumbs(99, 'Section/name', $data);
/// New function in tree helper class:
function showCrumbs($id, $name, $data)
{
/// ..
Is there any more info on this component?
For instamce can I do a cycle back? To keep adding until finished?
stab wrote:
http://cakeforge.org/snippet/download.php?type=snippetid=158
might be a start
On Dec 27, 2:08 am, Tazz [EMAIL PROTECTED] wrote:
First I will describe my model and then
Hi, everyone,
I just using Cake 1.2.
Normally, in the stable version. We just need define a router like:
$Route-connect('/', array('controller' = 'events','action' =
'index'));
And then all the action related with events like view, edit will work
perfectly.
BUT in the 1.2, I also define a
What about something like this:
class SectionController extends AppController
{
var $uses = array('Section');
function view($nodeId)
{
$tree = $this-Section-findAllThreaded();
$breadCrumb = $this-_findBreadCrumb($tree, $nodeId);
I like that idea, I'll try it out (and fix anything that is broken).
Thanks Mariano!
--~--~-~--~~~---~--~~
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
Ok, I tried this and everything looks very nice (after the small amount
of testing I did). The result is definately workable.
Thanks again Mariano for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Since reading this, I've been using Mariano's technique for limiting
results. It's a pretty slick way of handling this problem.
http://bakery.cakephp.org/articles/view/185
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
add ?php echo $this-base ? in the left side of your css or js url
--~--~-~--~~~---~--~~
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
39 matches
Mail list logo