bluehawk / kohanut Goto Github PK
View Code? Open in Web Editor NEWAn extensible CMS written in Kohana 3.
Home Page: http://www.kohanut.com
License: BSD 3-Clause "New" or "Revised" License
An extensible CMS written in Kohana 3.
Home Page: http://www.kohanut.com
License: BSD 3-Clause "New" or "Revised" License
Initialized empty Git repository in /tmp/kohanut/modules/sprig/.git/
fatal: remote error:
Could not find Repository shadowhand/sprig
Clone of 'git://github.com/shadowhand/sprig.git' into submodule path 'modules/sprig' failed
Isn't the database structure supposed to be bundled with the code? :)
All text in admin views should use the i18n functions, so it's easy to translate the admin to a different language.
... and doesn't work if you're using one kohana/kohanut install for a number of sites.
Solution : add the following to the top of the action_index() function in classes/controller/kohanut/install/install.php :
if(count(Database::instance()->list_tables('kohanut_layouts'))>0) {
$this->request->response = new View('kohanut/install-success');
return;
}
and change views/kohanut/install-success.php to remove the instruction to rename the file...
Hope this helps.
Martin
:-)
Links generated by Markdown will not work if you installed your Kohanut into a subdirectory (subdirectory is missing from the generated anchor).
In application/bootstrap.php, the following :
'profiling' => ! IN_PRODUCTION,
should be :
'profile' => ! IN_PRODUCTION,
(per the documentation above)...
All the Best
Martin
:-)
I'd like to see applying ACL so that you can limit access to some users.
Redirects are not handled this time. To fix this, edit 'action_view' in 'kohanut\modules\kohanut\classes\controller\kohanut.php'
Modify the catch to this:
$redir = Sprig::factory('kohanut_redirect' , array('url' => $url))->load();
if ( $redir->count() > 0 ) {
// set status
Kohanut::status( $redir->type );
// redirect
$path = $redir->newurl;
Request::instance()->redirect( $path );
} else {
// Find the error page
$error = Sprig::factory('kohanut_page',array('url'=>'error'))->load();
// If i couldn't find the error page, just give a generic message
if ( ! $error->loaded())
{
Kohanut::status(404);
$this->request->response = View::factory('kohanut/generic404');
return;
}
// Set the response
$out = $error->render();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.