Thanks Buddy...
BUT, I just can create a rss by browser like
http://localhost/cake/posts/rss
And I can add it for my FF2.0
BUT it is contains nothing...Why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Cake
So in devploment stage i have cake directories
/andriu/cake - witch cake core
/andriu/beta/, /andri/beta/webroot - witch app (controlers,models etc,
httacces)
i use $html-link(..) to create html code on web pages exp.
in apache alias beta.lowcy.pl /andriu/beta
echo
I am quite confused about the whole process.
OK. When the page opend, it fetchs the config.theme from the db, like
modern, and then pass it to the Theme.php to handle the rest of the
thing ?
Like normal way, m-v-c, I understand some. The View display for forend,
like input, and all layout. Of
Synchro wrote:
I expect a page to be the result of many functions
displaying many views at once. ... Do I
need to build layout back-ends in my controllers in order to call
multiple functions and gather relevant views together? But that makes a
controller do a view's job as presentation
One further point. If a single view (here exemplified by an html page)
consists of several different, perhaps only loosely related visual
sections, I suggest that its controller's function should consists
largely of calls to a number of routines which prepare the data
packages for each of those
On Nov 11, 8:55 pm, Andrej [EMAIL PROTECTED] wrote:
in AppController I've got two default helpers:
var $helpers = array('html','javascript');
in EmployeesController I want to use another helper, the Child helper.
It is possible by typing:
var $helpers = array('Html', 'Javascript',
As I've got solution I post it to community.
According to http://www.php.net/manual/en/keyword.parent.php it's
impossible to access parent variables using parent::
The only way to access parent variable is _not_ to use same variable
name in derived class.
So I put a new variable into my custom
Hi,
Your solution shouldn't be necessary.
Cake merges $helper, $component and even $uses arrays automatically.
So if you have ...
var $helpers = array('Html','Javascript');
... in your AppController, and ...
var $helpers = array('MyHelper');
... in your child controller, then all three Helpers
Meek,
you are right.
At least I get familiar with inheritance model in cakephp.
Thanks,
a.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Cake PHP group.
To post to this group, send email to
How can I add a dynamic header to all pages?
If I create a header template I can include it in all views, but I
don't know how to go about including the data handling routine to all
the controllers.
Can I create a dedicated controller for this and let all other
controllers inherit from it? Or
Hello
(sorry if I posted twice, it didn't show up the first time :\)
Ok, so, I'm developing a medium sized application. I would appreciate
any suggestions you guys can make.
I need to design a system that traces microstations. What's a
microstation?
Just for reference, a microstation is a
Luigi,
The join table which is the 'extra' table is a common practice and good
design principle in when working with databases, when you say it seems
like unnecessary work, how will you stop someone inserting a record in
your blog favorites that has no relationship to the blog posts table,
you
Someone post a new article about this in the new Barkery??
Thanks
nate 写道:
What's showing in the wiki is really all there is to it. You set the
theme name in the controller, and all images, JavaScript and CSS are
automatically loaded from that subdirectory in webroot. (Btw, this
feature
Thanks!
I really appreciate the help. :)
--~--~-~--~~~---~--~~
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
How can I add a dynamic header to all pages?
If I create a header template I can include it in all views, but I
don't know how to go about including the data handling routine to all
the controllers.
Can I create a dedicated controller for this and let all other
controllers inherit from it? Or
I'm not sure exactly what you mean, but if this sounds like it could
work for you it has done wonders for me so far.
Borrowed the concept from WordPress in a way. In my layout I check for
the existence of a variable called $header, if it exists I output it,
if it doesn't I do nothing.
This way,
That makes a lot of sense, the only problem is that I don't know where
to put the *code* responsible for gathering the data that goes in the
header. Where can I place code, so that it gets executed in all
controllers (or a subset) in my app?
Thanks for your reply!
I guess it depends on what kind of data it is going to be.
Logic specific to an action
- in the action of the controller
Logic specific to a model
- in one of the callback methods of the model controller
- e.g. beforeRender, beforeFilter, etc
Logic that you need to include on every view
- in
What's the name of your User model and $this-user_model should be the
name of that model.
So if you have a User model called User then var $user_model should =
User
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
This has something to do with your relationships. Can you post your
model code somewhere I can have look,
Steve
gobblez wrote:
I've been reading the manual and have been trying to get the obAuth
working that I found in the Bakery. I have Users, and they can
belong to one Group. Then a
I am trying to implement a multi-page form with validation for each
step.
Where do I put the validation rules? There are some rather complex
rules in the form, and some branching depending on the choices the user
make. That means that I need to validate the form for each step, but
using a subset
I made a website with 11 steps with some 30 tables
A little complex, if you need some help email me.
devarz escreveu:
I am trying to implement a multi-page form with validation for each
step.
Where do I put the validation rules? There are some rather complex
rules in the form, and some
first,
put this code to your header template:
//---
?php echo $this-renderElement('zone_header'); ?
//---
this code will call app/views/elements/zone_header.thtml
inside zone_header.thtml put another code:
//---
?php echo
gobblez wrote:
This is a summary of my DB tables and fields:
users
---
id | email | password | group_id | created | modified
groups
-
id | name | created | modified
User.php
class User extends AppModel
{
// Its always good practice to include this
Why don't you mix it? Create a component that handles the logic to
obtain the data that should be available on all views. Then add that
component to $components in your AppController. Then, on the
beforeRender() method of your AppController interact with your
component and finally set the data
Sounds like a very cool thing to show the rest: how to implement a
wizard in cake.
Possibly a Bakery article? ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Cake PHP group.
To post to this group, send email
Can you post the code? Mine's working well based on the tutorial.On 11/12/06, Eric [EMAIL PROTECTED] wrote:
Thanks Buddy...BUT, I just can create a rss by browser like
http://localhost/cake/posts/rssAnd I can add it for my FF2.0BUT it is contains nothing...Why?-- Adrian Godong[EMAIL
Thank for your patient!
I also do the tutorial said...and I also do your way change the
$rss-outputFeed();
to $rss-saveFeed();
I have save the feed by my FF, and it appeard in my bookmarks Toolbar
folder. BUT, It contains nothing
Don't know why...
I need some assistance with a new project based on cakePHP. It is a
small web application that must be developed in the new few weeks.
Please respond to this post with contact information if you are
interested and have time to devote to completing this application in 2
to 3 weeks.
The
I can't really help you without the code... Coz I think it's in the code.Also check your findAll statement, maybe it's empty because there is no data being passed.On 11/13/06,
Eric [EMAIL PROTECTED] wrote:
Thank for your patient!I also do the tutorial said...and I also do your way change
- /app/views/layouts the file rss.thtml--- I paste it
from the tutorial
?php echo $content_for_layout; ?
--PostsController-
?php
class PostsController extends AppController
{
//var $scaffold;
var $name = 'Posts';
function index() {
On 11/12/06, Eric [EMAIL PROTECTED] wrote:
I am quite confused about the whole process.
No problems
OK. When the page opend, it fetchs the config.theme from the db, like
modern, and then pass it to the Theme.php to handle the rest of the
thing ?
Yes ThemeView will handle the rest
Code looks good. If you're sure that the $posts contains any content, I really don't know what's wrong.IMHO, it's something with the database and/or the findAll statement. You can also try decomposing the problem into which part of Cake (the model, view, or controller).
My first step would be
yes. the $posts contains data. Cause I use ?php pr($posts)? to get
data already.
--~--~-~--~~~---~--~~
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
You have two available venues for these requests:
http://cakefoundation.org/pages/services
http://cakebaker.42dh.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Cake PHP group.
To post to this group, send
I've been using both Cake and Symfony at the same time, and I think
they are both great frameworks with some up- and downsides attached,
which may not even be downsides or upsides depending on your point of
view.
Typically, it's all a matter of requirements and preferences ... while
I believe
How much work is involved? I've done some work with cake.
On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I need some assistance with a new project based on cakePHP. It is a
small web application that must be developed in the new few weeks.
Please respond to this post with contact
Hello all,
I have a form for Model 'Item' that includes a file upload widget to
get image data into a database. When I want to edit the data, how can
I avoid having the binary data overwritten if the file upload is
empty (null)? In other words if I'm not replacing the image I don't
want
In the fieldlist you can put a list of fields the query is allowed to update.
So in your case, remove the 'image' field from the whitelist when the
image data is empty
On 11/13/06, Daniel Jewett [EMAIL PROTECTED] wrote:
Hello all,
I have a form for Model 'Item' that includes a file upload
On 11/13/06, Daniel Jewett [EMAIL PROTECTED] wrote:
Looking at:
Model::save (
$data = null,
$validate = true,
$fieldList = array()
)
From the API docs - array $fieldList List of fields to allow to be
written
HTH
Tarique
--
40 matches
Mail list logo