Hi all.
is it possible to link a file (in this case a .dwg or .dxf cad drawing)
located in a LAN shared folder?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their
Not a CakePHP specific question.
If the page the link appears in is online, then no you cant as your file is
on your LAN and therefore not public.
I assume you're talking about an intranet page though, in which case of all
computers accessing the intranet have that LAN folder mapped to the
I also suggest having a look at the 960 grid system (http://960.gs)
I used to do it all with floats and em measurements so zooming was very
graceful, but browsers ignore all of that now so you seem to be able to
have columns with fixed widths and it not impact when the user zooms page
content.
If you keep bug fixing and submitting good pull requests chances are the
powers that be will quickly notice you and things progress from there.
So basically you're already doing everything right.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
If you are new to CakePHP then you need to read through the book a couple
of times before jumping into a project. Bake some seperate projects and
look at the code produced, if you're having problems with basic CRUD
functions then they are all done for you when you bake.
--
Our newest site
yes it's an intranet page.
i was just asking if it's possible using cake's htmlhelper.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
Hi – Have you seen the results of The Great Web Framework
Shootouthttps://github.com/seedifferently/the-great-web-framework-shootout?
It's a benchmark test comparing the performance of a few of the most
popular web frameworks.
Our beloved framework doesn't look so good there. Although they
without cake2.x it will not be very representative
you cant compare the cutting edge of one framework with something
years old at another framework branch
so, yes, I think 2.0 will be better off
also note, that none of the usual optimization is applied (opcode
cache, ...)
so in real life the
I'm with you @huoxito. This seems to be an issue introduced in 2.0 as I
never had it on 1.3.
Anyway, I tried the 'mask' = 0666 solution but didn't work. I'm also
running shell scripts on a cron, so every time it ran, the persmissions
were changed. So my temporary solution was to add the
You can tell cronjobs under which user it should run. For your case
apparantly it should be the apache user.
The default mask value '0664' was intentional because of security issues.
Try 'sudo -u {apache-user} cake {shellname} {command}' or set the
default mask in core.php __before__ you use
With very minimal tweaking my install on a 256 mb of ram server gets 3000
requests per second.
Completely useless results.
On Feb 20, 2012 8:00 AM, euromark dereurom...@googlemail.com wrote:
without cake2.x it will not be very representative
you cant compare the cutting edge of one framework
@euromark: Point taken.
@Justin: That's cool! But any of the other frameworks could be minimally
tweaked and improve their results, no? The point of these tests is to leave
the technologies as they're brought to you, out of the box.
Now don't get me wrong, I love CakePHP, know its benefits, and
Lucho,
By default advanced debugging /logging features are enabled and
caching is set to most minimal. I don't know what others ship with.
Just disabling the debugging speeds it up dramatically, and it's a
one line configuration. We're talking about programming frameworks,
doing a hello world
SInce releasing CakePHP in 2005 I have seen all of these tests and each one
does something different. I am not sure how the other frameworks handle
certain functionality by default but a good example of differences I have
seen in these benchmarks would be components, helpers and specifically
Lucho,
I'm a noob to MVC and Cake (in the past year) and looked at a lot of
considerations before deciding upon Cake. In the end I was convinced that
picking an MVC was like picking your religion - all of them work well if
you work at them and you read the instructions :) The size and nature of
On Feb 20, 2:50 pm, Lucho Molina lu...@lacocoleria.com wrote:
Hi – Have you seen the results of The Great Web Framework
Shootouthttps://github.com/seedifferently/the-great-web-framework-shootout?
It's a benchmark test comparing the performance of a few of the most
popular web frameworks.
Hi there,
I have posted on another group, but had no replies, so please forgive
me if this is a double up.
I am still fairly new at cake and have been trying, very
unsuccessfully to setup a login to some admin tools on a site I have
built using Cake 2.
I have now tried about 4 different methods
Makes sense, thanks.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
I'm migrating a site to 2.x and have run into some problems with
routing. URLs for the site are preceded by a 2-letter code for
language. My routes.php begins:
$lang_regexp = implode('|', Configure::read('Config.languages'));
Router::connect(
'/',
array('controller' =
public function beforeFilter() {
$this-Auth-allow('index', 'view');
$this-set('logged_in', $this-Auth-loggedIn());
$this-set('current_user', $this-Auth-user());
}
The Auth-allow() should be in UsersController.
--
Our newest site for the community: CakePHP Video
One other thing: My main navigation links are fine. For the route in
question, this array is passed to create the link:
array(
'admin' = 0,
'controller' = 'volumes',
'action' = 'current',
'lang' = $lang
)
The resulting URL is correct (/en or /fr). Commenting out
Hi
I want to use cakephp model behaviour to do this. Can you help?
I have a user table which stores id(s) for city, secretquestion etc.,
so my 'user' table has city_id and secretquestion_id and the actual
names/texts for these are stored in City Secretquestion tables
respectively.
Now, I am
if you have relations in models created, than this should be automatically
so, probably
User BelongsTo City
Secretquestion belongsTo City
City hasMany User
City hasMany Secretquestion
http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html
read here how to read data :)
The CakePHP core team is proud to announce the immediate availability of
the first CakePHP 2.1.0 Release Candidate [1]. As noted in the previous
releases, this version is fully backwards compatible with 2.0.6, making it
a breeze to update your apps to start taking advantage of the many
Thank you very much for the info. Helps to know the process!
On Feb 20, 4:54 am, phpMagpie p...@webbedit.co.uk wrote:
If you keep bug fixing and submitting good pull requests chances are the
powers that be will quickly notice you and things progress from there.
So basically you're already
In routes.php I've changed:
App::import('Lib', 'routes/PageSlugRoute');
to:
App::uses('PageSlugRoute', 'Lib/routes');
My custom class is in app/Lib/routes/PageSlugRoute.php
This throws a warning:
Warning (2): Unknown class passed as parameter
[CORE/Cake/Routing/Router.php, line 255]
Code
because your PageSlugRoute has to be extended from CakeRoute :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/2/21 lowpass zijn.digi...@gmail.com
s_subclass_of
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions
I have read these and tried a couple ways already. The difference here
is that city_id,secretquestion_id are part of my main table and my
controller is on the main table. Where as in that material, user_id
(of the main table) is part of the secondary info table (so user_id is
foreign key).
That's
On Mon, Feb 20, 2012 at 6:08 PM, Tilen Majerle tilen.maje...@gmail.com wrote:
because your PageSlugRoute has to be extended from CakeRoute :)
It is. I should have mentioned that.
class PageSlugRoute extends CakeRoute
I've been trying to debug how class loading is supposed to work. I
adjusted
On Mon, Feb 20, 2012 at 6:29 PM, Blues Clues bluesclu...@gmail.com wrote:
I have read these and tried a couple ways already. The difference here
is that city_id,secretquestion_id are part of my main table and my
controller is on the main table. Where as in that material, user_id
(of the main
Thanks all for your comments.
I got the feeling some of you got offended by the post, I'm sorry if that
was the case. I guess Tim is right about MVCs being like religions! By the
way, it's refreshing to hear the opinion of a new adopter, thanks.
I will contact the author and ask him to
@lucho
you dont have do - jose already opened a pull request yesterday:
https://github.com/seedifferently/the-great-web-framework-shootout/pull/2
the author is already aware and maybe will apply the overdue changes
some day ;)
On 21 Feb., 01:21, Lucho Molina lu...@lacocoleria.com wrote:
Oops, too late. Thanks anyway Mark.
BTW, all, this is the core.php file of the installation Seth used for the
tests:
https://github.com/seedifferently/the-great-web-framework-shootout/blob/master/cakephp/app/config/core.php
Configure::write('debug', 0);
Configure::write('log', true);
It seems
Hello everyone,
I apologize for the fresh publicity that this received with an old version
of CakePHP. The last version of these tests were run in September of 2011,
and I just recently decided to move the code to GitHub but didn't expect
that it would be picked up by Hacker News, Reddit, etc.
I clued in to change it to:
App::uses('PageSlugRoute', 'routes');
But now I get a fatal error when PageSlugRoute imports the Page model:
Fatal error: Class 'Model' not found in
/var/www/vhosts/jcah/app/Model/AppModel.php on line 3
So it's no longer possible to instantiate a model inside a
This is driving me crazy, I'm sure it has to be something I am doing
incorrectly but I cannot imagine what.
I wonder if their is a limit to the fixed fields or something?
Thanks
On Feb 14, 4:03 pm, elogic asymo...@elogicmedia.com.au wrote:
Thanks but that isn't the issue as I even tried
I have my custom routes working fine in 2.x
App::uses('PageSlugRoute', 'Route');
the class in Lib/Route
App::uses('Article', 'Model');
App::uses('CakeRoute', 'Routing/Route');
class ArticleRoute extends CakeRoute {
...
}
in AppModel.php I have
App::uses('Model', 'Model');
class AppModel
On Mon, Feb 20, 2012 at 8:57 PM, Sam Sherlock sam.sherl...@gmail.com wrote:
in AppModel.php I have
App::uses('Model', 'Model');
class AppModel extends Model {
By the shaking, jumping ghost of Jehosaphat! Yes, that did it. Seems
perfectly obvious now but I don't think I was going to see that
happy baking :)
- S
On 21 February 2012 02:03, lowpass zijn.digi...@gmail.com wrote:
On Mon, Feb 20, 2012 at 8:57 PM, Sam Sherlock sam.sherl...@gmail.com
wrote:
in AppModel.php I have
App::uses('Model', 'Model');
class AppModel extends Model {
By the shaking, jumping ghost of
I guess part of the problem for cake with this stuff is public image.
Good framework. Bit slow.
whatever. It makes building stuff easy. and i have never had a
server performance issue with it. hopefully one day i will.
w
On Feb 21, 11:58 am, Seth seedifferen...@gmail.com wrote:
Hello
Hi guys, I want to wrap some elements in a div, and I'm using
$this-Html-div('foo')
to generate the starting div tag, but I can't find a method to generate the
closing tag
how can I use the HtmlHelper to do this? I think write the '/div'
directly is ugly...
--
Perry | 彭琪
http://pengqi.me
I always find leaving the markup in its native language is beneficial,
except in cases where cake's pathing becomes an issue (image, anchors
etc)...
I'd go and write divfoo/div personally, but thats just me.
however, from the documentation:
HtmlHelper::div(*string $class*, *string $text*,
thanks for the reply, I have many elements to be wrapped, and I'm using the
HtmlHelper to generate these nested elements too, so I cant' pass these
elements as the second parameter
maybe I should write the layout directly
On Tue, Feb 21, 2012 at 2:36 PM, Greg Skerman gsker...@gmail.com wrote:
43 matches
Mail list logo