On 1/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> What's the best way to do something like the "<%= render :partial %>"
> that Rails has in it's view files?
I presume you are looking for Elements. See
http://manual.cakephp.org/chapter/views
Cheers
Tarique
What's the best way to do something like the "<%= render :partial %>"
that Rails has in it's view files? I would like to organize my
CakePHP views into multiple sub-files, with each sub-file handling a
small section of the page.
Thanks,
sness.
--~--~-~--~~~---~--
Kaste
> when you dont need the modelling-features of a framework because it
> duplicates your fine SQL-code and you only see a need for the VC of the
> MVC probably switch to CodeIgniter and query your views and execute your
> procedures and do the validation in the controller.
>
I have b
> That's a pretty typical (and kinda sad) answer from someone with no real
> sql/ database background, and happy with MySQL, which just recently,
> (version 5) realised that Views, stored procedures, triggers, etc are
> MANDATORY in any serious database engine.( I use Postgresql exclusively
> wit
Oracle Developers:
The newest revision of the Oracle driver has just been committed to:
https://svn.cakephp.org/repo/branches/1.2.x.x/
Please test it and submit your bug reports to Trac. We would like to
have this driver absolutely solid for the 1.2 release.
--~--~-~--~~--
>
> thanks. i'm looking to update all textual content on the page at once.
> if i have the font resizer buttons in my layout file, what would be the
> best way of targetting the dynamically generated content from my cms/
> blog / etc?
>
> obviously, i would want to avoid having to manually script
Pje,
A table is a collection of many records (plural); A model (singular)
defines how each individual record is handled. At least that's how I
think of it. Perhaps someone else can convey the thinking into words
more precisely.
--~--~-~--~~~---~--~~
You receiv
Hi,
is there any way to load the config only one time somewhere in app-
controller?
On 28 Янв., 22:14, Michal Bilcik <[EMAIL PROTECTED]> wrote:
> and in controller you load this config file:
>
> Configure::load('my_settings');
--~--~-~--~~~---~--~~
You receive
Thank you very much. Cake now gets props on my site.
--~--~-~--~~~---~--~~
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,
The default layout of any CakePHP release has a "Powered by CakePHP"
logo in the footer - as does the CakePHP main site.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send
Shunro Dozono ported the Contented Designs templates to Cake.
http://cakephp.seesaa.net/article/20355864.html
On Jan 28, 11:46 pm, "keymaster" <[EMAIL PROTECTED]> wrote:
> Anyone know if there are any contributed or publicly available skins
> for a baked app - just for the basic crud operations?
I'm not sure if I fully understand your problem, but if you are trying
to save without validating then call save like this:
// Tell the model to save without validating the data
$this->Model->save($this->data, false);
-
This is a snippet from the Cake API about the model funct
codecowboy wrote:
> 2 They cannot export the diagrams (typically they can
> export anything but MySQL 5!!).
makes a lot of sense. Before 5, Mysql knew nothing about entity relations.
Bernard
--~--~-~--~~~---~--~~
You received this message because you are subs
You can also use a command called requestAction. I have copied a
snippet from the CakePhp Manual's Controller chapter (http://
manual.cakephp.org/chapter/controllers).
--
* requestAction
* string $url
* array $extra
This function calls a controller's action from any
John
> I've always had mixed feelings about this: in some ways using
> triggers, stored procedures and the like seem to me like spreading
> your application logic in too many places. I can see where they'd be
> useful though, too.
>
No. ALL the business logic should be where it belongs, w
Chris
> I have never used an SQL view and would love to see a real-world
> example of when a view should be used over, say, the CakePHP model
> combined with associations.
>
>
That's a pretty typical (and kinda sad) answer from someone with no real
sql/ database background, and happy with MySQ
I just finished a site that required 4 different templates. Our home
page had its own template. We have a wiki section that has its own
template. Then we have the default template that every other page
uses and of couse we have the Ajax template. Template is
interchangelbe with layout. Ea
sqlYOG is amazing. It is not expensive either. It was a great use of
fifty bucks. I have been using it for about six months now and I love
it. As far as DB Design tools go, I have done alot of research and it
seems that until workbench is stable, you will need to spend money.
Every tool t
I just launched a my new website. I have been trying to find a
powered by cake js snippet or similar so that I can give Cake some
props on my website but there doesn't seem to be a place to copy paste
such a snippet from. Does anyone know if such a thing exists? I
obviously could just downl
Hi,
There is a reason to use plural names in your tables? Because, in a logical
model, entity names must be in singular. Why, when transforming my logical
model to the physical, would I transform each entity name to a plural?
On 1/5/07, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote:
>
> O
your views should contain the markup and the content
to switch from "layout" (style) your layout should only need to switch
between css files
Possibly rendering some more/less/other elements or in an other order
or something, but that should be about it.
--~--~-~--~~~--
The reason APP_PATH is empty can be found in your main index.php file
It contains something like this:
if (function_exists('ini_set')){
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR .
CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS);
define('APP_PATH', null);
Just modify your routes to specify the admin route before the
catchall:
$Route->connect('/admin/*', array('controller' => 'admin', 'action'
=>'index'));
$Route->connect('/*', array('controller' => 'contents', 'action'
=>'index'));
On Jan 28, 1:40 am, "GuyBowden" <[EMAIL PROTECTED]> wrote:
>
The view you want to include is called an element in cake.
Define an element file containing your html.
Place it in app/views/elements/.
Include it with:$this->renderElement().
See the manual section on elements here: http://manual.cakephp.org/
chapter/views
--~--~-~--~~
I am a CakePHP and to split my views in multiple files. In a view I'd
like to call something like echo($this->include(model, viewname));
where model is some AppModel I got and the view should map to a
possible view for that model. Is there a way to do that in CakePHP?
Thank you,
Matt
--~--~
Wow! This distributed cooperation is wonderful.
I got exactly the same parse error after introducing a call to log
today, and decided to check this group and see if anyone else stumbled
on it also.
Thanks to all involved, this thread saved me time. The fix works for
me.
On Jan 24, 4:15 pm, "
Hello again,
in my app people can upload files (images), so before i do
$this->WaypointPhoto->save($this->data)
i do things like resizing images, moving images from temp dir to my app
dir,..etc:
1. move image from temp dir to app dir
2. make thumbnail from original image
3. save it to DB: $this-
If you uncomment the line: define('CAKE_ADMIN', 'admin'); in your core
file then Cake should handle all of the rest.
HTH,
Ryan Rose
http://www.digiwize.com
On Jan 28, 3:40 am, "GuyBowden" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a current site that the content and parts of the layout are
> c
thank you, I guess that's what I need.
On 28 Янв., 22:14, Michal Bilcik <[EMAIL PROTECTED]> wrote:
> > what's an easy way to have some global variables and arrays available
> > to my controllers and views?You can create your config file
> > (my_settings.php) in app\config
> directory with variab
Nazdar,
28. 1. 2007, Ryan napisal:
> Try: define('FILES_DIR',WWW_ROOT.'files'.DS.'my_upload_dir'.DS);
Thanks, WWW_ROOT constant is OK.
--
Michal Bilcik
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP
Try: define('FILES_DIR',WWW_ROOT.'files'.DS.'my_upload_dir'.DS);
HTH,
Ryan Rose
http://www.digiwize.com
On Jan 28, 9:05 am, Michal Bilcik <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I read in Cake's Global Constants And Functions chapter, section 3:
> http://manual.cakephp.org/chapter/constants
>
Hey Lance,
Thank you very much for your help!!
It was indeed a layout error...
The tag wasn't closed...I had put it there to mark the
"top of the page" section and to put a link on the end of the page to
navigate back to top...
It was one of that silly mistakes...by not closing CAKE freaked
Hello,
28. 1. 2007, Sergei:
> what's an easy way to have some global variables and arrays available
> to my controllers and views?
You can create your config file (my_settings.php) in app\config
directory with variables:
$config['my_variable'] = '123';
and in controller you load this config f
Hello,
I read in Cake's Global Constants And Functions chapter, section 3:
http://manual.cakephp.org/chapter/constants
APP_PATH: absolute path to the application's app directory.
But when I use (in controller) this constant it is empty:
echo APP_PATH;
another constant, for example CONTR
Anyone know if there are any contributed or publicly available skins
for a baked app - just for the basic crud operations?
(ie. CSS files which reference the DIV classnames in the view files)?
--~--~-~--~~~---~--~~
You received this message because you are subsc
Thx but i mean like "normal" templating systems so also the
presentation code from the views.
On Jan 28, 1:01 am, "nate" <[EMAIL PROTECTED]> wrote:
> http://manual.cakephp.org/chapter/views
>
> Read the "Layouts" section.
>
> On Jan 27, 4:47 pm, "Mech7" <[EMAIL PROTECTED]> wrote:
>
> > Is there
Thanks, looks promising!
On 28 Янв., 19:48, "jitka" <[EMAIL PROTECTED]> wrote:
> You can use Configure class for Your need, ie in Your bootstrap.php
> call
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP"
I tried this, of course. That won't work, because "define" can handle
only SCALAR variables. Arrays are not scalar.
==
Warning: Constants may only evaluate to scalar values
==
And the variable isn't available. Another ideas?
How come so powerful framework cannot handle such easy task as global
If you use $this->log('blah'); You can open the error.log file in
Console.app on Mac OS X and
it will update live. Works very nicely.
/John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post
You can use Configure class for Your need, ie in Your bootstrap.php
call
Configure::write('App.varOne', array('someKey' => 'someValue'));
Configure::write('App.varTwo', true);
Configure::write('App.varThree', 159);
and somewhere in Your code You can call
$app_config = Configure::read('App');
Use define, in your bootstrap.php
define( 'YOUR_IMPORTANT_VALUE', array() );
then use YOUR_IMPORTANT_VALUE in your controller.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this grou
Hi Zipman
On Jan 27, 5:17 pm, "zipman" <[EMAIL PROTECTED]> wrote:
> Is there any workaround that I can do in any lower level,
>
> in order to get transactions?
First, define what you mean by 'transactions':
http://groups.google.com/group/cake-php/browse_thread/thread/
3e7a8e6085bf5766/7a4ec5130
Hi,
what's an easy way to have some global variables and arrays available
to my controllers and views?
I tried to insert some array to bootstrap.php like
$myarray = array ();
But I cannot access it from my controller.
any help?
--~--~-~--~~~---~--~~
You rece
Hi,
I'm following this tutorial:
http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake2.html
and have a problem with creating AROs. The tutorial walks through
creating two AROs:
php acl.php create aro 0 null Users
php acl.php create aro 0 null Dealers
however, using that command gives
Hi,
I have a current site that the content and parts of the layout are
controlled by a database table.
As such I only really need one action inside one controller to run the
site - the parameters that get passed in the url define which content
to display...
i.e.
mysite.com/mainpage/subpage
i resolved this. you need to make sure that php cli is configured with
mysql support. on my system, this meant editing /etc/php5/cli/php.ini
to load the mysql.so extension.
On 27 Jan, 16:43, "lukemack" <[EMAIL PROTECTED]> wrote:
> hi,
>
> i'm trying to run acl.php from the command line on lin
i resolved this. you need to make sure that php cli is configured with
mysql support. on my system, this meant editing /etc/php5/cli/php.ini
to load the mysql.so extension.
what i hadnt realised was that the php cli uses its own php.ini.
thanks anyway,
lukemack.
On 28 Jan, 02:37, "Dr. Tariqu
47 matches
Mail list logo