Hi Jeff
Have experienced the same too. Also I have found that the templates I
get after I have baked the views differ from what I have when only
using the shaffold function.
Gerhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Think it only deletes files under tmp/cache/views
--~--~-~--~~~---~--~~
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
Mayby you have to use the try.. catch also
http://mark-story.com/posts/view/simplifying-controller-logic-with-exceptions
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
Put the code you had in bootstrap in your main app_controller.php in
the beforeFilter() function
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Have made a plugin for this named Settings:
http://code.google.com/p/gerhardsletten/source/browse/trunk/cakephp/plugins/settings/docs/readme.textile
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group
Go with conversions.
If your app allow full crud for regular users, you might not need to
create a admin controller functions/views for that model. Also try to
ignor the desire to mod everything. What you get baked will often do
the job, even though it's not as sexy as the wordpress backend.
Hi, just made this plugin that imports your config/core.php settings
into database and makes it possible to easy controll them in your
backend.
http://code.google.com/p/gerhardsletten/source/browse/#svn/trunk/cakephp/plugins/settings
I override the default settings in app_controller.php
MeioUpload is made for images..
If you have modified it, to handle all kinds of files, check to see if
you can upload other kind of files.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to
Experience a bug with cake_1.2.3.8166 where I have a Posts plugin that
has a controller with same name. When I try to redirect to the index
function cake adds :controller in the end.
I get this url:
http://localhost/~gerhard/gersh.no/admin/posts/:controller
Anybody who knows if thats a bug?
I am planning a settingsplugin, which reads all default settings in
setting/core.php and then gives admin a interface to override these
setting, storing them in a table.
Is it possible to use a
App::import('Model', 'Settings');
in either core.php or bootstrap.php and itterate through the whole
Guess the same goes for the api..
--~--~-~--~~~---~--~~
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
Read this today:
switch($_SERVER['SERVER_NAME']){
case ‘digbiz.localhost’:
$this-default = $this-dev;
break;
case ‘digbiz.example.com’:
$this-default = $this-prod;
break;
default:
// we are likely baking, use our local db
$this-default = $this-dev;
}
via
I use the Textmate Bundle SVNMate (http://ciaranwal.sh/2007/11/29/
svnmate-update) its really wonderfull working with. And on office
where we use svn+ssh protocol it even supports that to.
Also have the svnX, but its a little more hazzle working with.
Kudos!
--~--~-~--~~~---~--~~
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
Are using MeioUpload on my last project to as Article has many
Uploads. When editing an article you can upload one and one image.
Your will find source here:
http://code.google.com/p/gerhardsletten/source/browse/trunk/cakephp/surdeig/models/upload.php?r=6
If you need your app to upload all
http://www.twitter.com/gerhardsletten
A salty mix of cake, ez publish, triathlon, food and live. Code stuff
mostly in english, but some norwegian now and than
On Jan 25, 5:33 pm, Marcelo Andrade mfandr...@gmail.com wrote:
http://twitter.com/mfandrade
Mainly in portuguese.
--
MARCELO DE F
Writing an app where I was planing to move all email delivering in one
controller. When I try to load this Utility controller in a function
from another controller. App::import fail to load Email component in
this controller
Controller 1:
code
function send_message() {
...
And did u remember to delete the files in app/tmp/cache
--~--~-~--~~~---~--~~
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,
User is a subclass of model. Model::read api here:
http://api.cakephp.org/class_model.html
Think u need to set the model recursive attribute:
$this-User-recursive = 2;
$user = $this-User-read(null, $id);
debug($user);
http://book.cakephp.org/view/439/recursive
Just added SmartMarkUp to my CakePHP blog. Its very lightweight and
works well with Cakes naming convention. Info here:
http://www.gersh.no/posts/view/smartmarkup_with_cakephp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Thanks, this what I was looking for.
Works nice with
code
var $actsAs = array('Tree');
/code
to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Anyone who knows why your Favorites doesn't get stored in your
Favorites-link at the top? Can't delicious everything..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
Hi Adam
Will have a look at it soon. Is working with a model with tree-
behavior right now.
Gerhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
I work with a similar thing right now.
The edit view:
?php echo $form-create('Contentclass');?
fieldset
legend?php __('Edit Contentclass');?/legend
?php
echo $form-input('id');
echo $form-input('title');
echo
in the beta release. You can either grab any release after 6337
(beta was 6311) or go into cake's model.php and add the return at the
end of the saveAll function and it should work like a dream.
On Feb 5, 5:07 pm, gerhardsletten [EMAIL PROTECTED] wrote:
I am trying to save related models
I am trying to save related models with saveAll, but it will not
return true even if it succeed to save:
if($this-Contentclass-ContentclassAttribute-saveAll($this-
data['ContentclassAttribute'])) {
$this-Session-setFlash(__('The Contentclass and all attributes
has been saved', true));
When you post some code this is what happens:
1. You write your text and paste code into tinymce editor
2. Tinymce encode and to lt; and gt;
3. You save your post, and lt; and gt; get stored in the db
4. Problem: when you re-edit your post, the textarea which tinymce
reads the content from
If you install in in your own homedirectory /Users/name/Sites check
you httpd prefs for this folder, you find it in /private/etc/apache2/
users/your-username. If not present create it. In mine I have this:
Directory /Users/gersh/Sites/
#
# This may also be None, All, or any combination of
Hi bakes!
Just upgraded to cake_1.1.18.5850 and some of my old distinct queries
failed.
Old query:
$posts = $this-findAll('Post.tag NOT LIKE ', array('distinct
`Post`.`tag`'), 'Post.tag DESC');
Result query from Cake was:
Query: SELECT distinct `Post.`tag` FROM `cake_posts` AS `Post` LEFT
JOIN
Do you mean that they should be allowed to
I think that each book object should b
Shouldn't the ISBN number be unique key. Books may have the same
title, but the ISBN is always unique, i think.. Don't know what
happens if the book is republished though..
Freebase do have a collection of book
Hi Lemon
I used a method in a project of mine, where I was updating a slug
field through ajax. Then I created a extra view for in the model,
which was included inside the form with a ajax updater. Then the
value of the field was an url-friendly verison of a title field. The
value of the title
Hi Road runner!
This is parts of my database.php:
var $default = array('driver' = 'mysql',
'connect' =
'mysql_connect',
'host' =
'localhost',
Hi Tane
Is it possible to cache an spesific element in 1.1 or is it a new
function in 1.2? Can you give us an example?
On May 9, 4:00 am, Tane Piper [EMAIL PROTECTED]
wrote:
I actually like to mix the two. What I find best is to create an
element, and put the rA() inside it. Then I can use
Lets say I want to create a pages called Projects with Software 1
and Software 2 as subpages. How do I do that.
Do I create an folder within Pages folder, where an index.thtml file
will be the default access when http://www.example.com/pages/projects
is requested?
I want the 2 subpages at this
Thanks, looking forward to try it out..
Gerhard
On Apr 23, 2:10 pm, jitka [EMAIL PROTECTED] wrote:
yes, You can create subfolders in app/views/pages, so url
example.com/pages/projects/software_1
will look for file
app/views/pages/projects/software_1.thtml
If You want
35 matches
Mail list logo