ivantcholakov / starter-public-edition-4 Goto Github PK
View Code? Open in Web Editor NEWA PHP application starter, based on CodeIgniter 3
License: MIT License
A PHP application starter, based on CodeIgniter 3
License: MIT License
This is a change that I am going to implement for releases 3.0.112 and 4.0.112.
The language segment should not be returned by:
$this->uri->segment()
$this->uri->segment_array()
$this->uri->total_segments()
Rationale:
There is an option about hiding the URI-segment of the default language. But when this option is changed in an already built system, the indexes of the targeted other segments will change, and code will not work correctly.
Till this moment I avoided this problem by using $this->uri->rsegment(), but this was not the conceptual solution.
The URI language segment is needed only for language detection, for other aspects it should be "invisible".
Hello @ivantcholakov ,
Currently i am doing one project on it. When I have added data from back-end(administrative) panel , data is successfully submitted to database but mean while reading from the database due to cache in platform/writable (WRITABLEPATH) it is not showing over browser, Please help me here how to turn off all those cache.
CI_VERSION = 3.0.6
PLATFORM_VERSION = 4.0.128
I think that this function:
$this->uri->ruri_string()
should return something like:
/modules/controller/function
but it return only:
/controllers/function
This is intended effect or just a bug? In my opinion ruri should return all path without any routing, so here is something wrong.
If I am wrong please explain me.
if you create a 'test' module with a 'test' controller with no index and no route you get a blank page instead of a 404
is this a bug or... ?
2015-11-13
2015-11-14
2015-11-18
2015-12-03
2016-01-05
Implement more complex parsers / template engines:
2016-02-08
2016-02-10
2016-02-26
2016-06-08
The list is not final, it could be extended or changed over the time. There is no a deadline for all these goodies. Suggestions and objections about this plan are welcome.
I am trying to create an app and it seems that non existing module methods result in a white page.
e.g.
/www/playground/
gives module playground, playground_controller
/www/playground/foobar
gives white page (not 404)
Hi,
I noticed problem with CSRF protection. I set all settings correctly. I even use form_open()
for adding CSRF hidden element. And... Key is added to the element, CSRF is writing to cookie but what is weird .. I can still refresh a sent form. I tested it also in your clean project and i noticed the same problem.
hmm... Could you look at this?
@ivantcholakov take a look at this for a CI validation replacement lib https://github.com/vlucas/valitron
I want to integrate latest facebook login sdk 4, will you share me how to do.
is possible to have common hooks ?
like define in applications\site\config\hooks.php
and place the hook file in core\common\hooks
i tried and no luck
Reported by @krishnaguragain here: #54 (comment)
in Registry class the function has
public function has($key)
{
$key = (string)$key;
if ($key != '' && array_key_exists($key, self::$data))
{
return TRUE;
}
return FALSE;
}
could be rewritten as
public function has($key)
{
$key = (string)$key;
return $key !== '' && array_key_exists($key, self::$data);
}
?
hi
i load 3 models (that extend core_model) on base_controller in admin and every one of those models add 1s on loading time
is something wrong on my end or that's the impact of core model ?
Hello mr @ivantcholakov , i think this is best codeigniter's customs so far. And i plan to use this for my next projects. This projects is updated frequently, so i think this project (starter public edition 4) is good if we can install from composer, so if there are an update, we just use composer update. So, can i ask you to make it available on composer?
Regards
NB : sorry for my bad english
Hi,
I noticed that Databese Session driver isn't working correctly. When its enabled, every time when i refresh a main page I've got an error something like "Repeated ID blah blah blah". So looked to the code and i think there is a problem with validation varible _row_exists. Could you look at this? I really need help with database session.
Btw.
I love your project :) every time when I build some app i use your masterpiece. Thank you and keep going.
Running Apache 2, php 5.5.9 on Linux Mint 17
I get the following error on the home page (http://localhost/ci_test/www/)
A PHP Error was encountered
Severity: Core Warning
Message: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/msql.so' - /usr/lib/php5/20121212/msql.so: cannot open shared object file: No such file or directory
Filename: Unknown
Line Number: 0
Backtrace:
File: /var/www/html/ci_test/platform/common/core/Core_Exceptions.php
Line: 164
Function: include
File: /var/www/html/ci_test/platform/common/core/Common.php
Line: 263
Function: show_php_error
Mysql does work OK with other frameworks I have installed on this box (Nette and Composer)
hi
i want to define some common events and per appname events without creating a module for this
so i was thinking on creating a class in platform\common\libraries,platform\applications\appname\libraries
how would you do it ?
hi
i need to save some config options to the database (with caching)
what is the earliest place (file position etc) i could use the database to load those options (in case the cache file doesn't exist)
thanks in advance for your help
unrelated (Plans for 4.1)
any chance to import some nice things from sprintphp ( https://github.com/ci-bonfire/Sprint )
in the order of importance (for me)
Email Queue system allows for very flexible email generations and sending.
Simple, GUI-less cron controller that can be used through standard crontab or scheduled tasks.
Database Seeding with CLI tool
The Forge - a code builder with simple generators in place, but fully customizable and easy to add your own.
See #54 (comment)
Due date: 30-JUN-2015
hi
i have a route declared like this
$route['a/(.+?)'] = 'b/$1'; won't work
if i declare it like this
$route['a'] = 'b'; it works
am i missing something ?
another thing i see in your htaccess you offer two options
1 remove www
2 force www
if i chose option 2 and use site_url('controller/method')
the url generated is without www
hi
is there a way to keep multilanguage but disable language segement in uri ?
or any suggestions on how to implement translated uri's
so would be possible to implement a config option to activate deactivate the automatic insertion of the language segment ?
i need to create something like this
site.com/en|es|it etc for any other language but default
the rest of urls i need to translate
site.com/contact (en)
site.com/contatto (it)
site.com/contacto (es)
this is for a cms
hi
sorry to bother you i have a question
in what file/function are you comparing the uri to the routes from the routes.php
because i tried to follow the code and i can't find that portion
thanks in advance
hi
how would you go enabling 2 languages for site and only one language (is one of the 2 from site) for admin ?
example : site in english and italian and admin only english
Hi Ivan,
I found a problem with helpers in module folder.
I create structure like that:
-mymodule
--controllers
--helpers
---MY_new_helper.php
and when i try to load Ive got:
$this->load->helper('my_new_helper');
Unable to load the requested file: helpers/my_new_helper.php
I tested it with many combination of name of the helper and adding module name to the name like:
$this->load->helper('mymodule/my_new_helper');
when I load helper in module from APP folder everything works OK
-appfolder
--helpers
---MY_new_helper.php
$this->load->helper('new_helper');
Could you look at this?
Can We have Different Template in Different Module. If So, How can we do it ??
How to clean cache dir ??
hi
any plan on adding language uri support ?
like this
www.domain.com/en/controller/method/etc
Hi,
I have a problem with non-mvc page. When I got to /www/non-mvc/demo.php/
Ive got an error: Assets directory is not writeable
. I checked permissions and I even set it to 777. Also I tested it on 2 different servers.
Hi Ivan,
Where is "Support for database stored settings (Settings library)." database?
Thank you.
hi
i love you starter edition of ci
is there a way to disable auto routing and only use the defined routes ?
or any other way to allow conversion of - to _ and solve
www.domain.com/my_controller/ responds
www.domain.com/my-controller/ responds
we have duplicate urls allow only www.domain.com/my-controller/
Hi,
Where can I find file like a in original CI index.php? There were settings which were able to set environment. Is that option still exist?
hi
how would you go for adding routes / module ?
in my situation every module can have multiple controllers and not always the controller name can be the route
thanks in advance for your response
hi
is there a way to get all available modules or i have to parse the directory structure
i ask because i don't want to redo a parsing if the framework is already doing that
any if you are kind enough to offer a suggestion how would you implement a acl for a unknown number of modules
Liking your extended CI... pretty much everything we use in CI is there and mainly because of multisite support.
I'm looking for option to extend db drivers, which is even missing in main CI framework. So we structure it in same way as in system folder to extend in APP folder.
application/site/database/drivers/{driver_name}/
There are few functionality i want to add to my mysql driver, among them insert_duplicate_update() is one of them. And there is also this count_totals_from_last_query() + some more.
See if it can be done.
hi
i'm sure i'm missing obvious but i'm so tiered
how can i build a url to the public site from the admin
something like site_url('my/path') i tried http_build_url(BASE_URL, '../api/get_shared_images') without any luck
sorry for disturbing you
Hello Ivan, congrat your great work! It helps me a lot to learn CI3...
Untill I can find my own answers, would you tell me how multiple applications can be used?
What I mean: are they totally separated, or for instance: if I have one login module in one of the apps and someone is logged in using that module, is it possible for the other app to check the logged in state or I need another login module for the second app, so the two login mechanism is totally different from eachother?
Thank you for your answer and for your brilliant work!
Joey (codexmonk)
hi
i have upgraded to the latest version and now i get a fatal error 'there is no such property'
when i load a model from inside a module
if i place the same model inside the module folder of the application it works
any idea what i done wrong ?
"Hi,
I am trying to store email templates in database.
I have enabled global Xss filtering : $config['global_xss_filtering'] = TRUE;
Now the problem is while saving the form data , inline style sheets are being removed
is being converted to
Is there any work around keeping the global xss filter enabled can I store the same data. I am encoding the total template html data before storing (to ensure security).
Thanks."
Message: Cannot access protected property CI_Loader::$_ci_cached_vars
Filename: libraries/Template.php
Line Number: 981
I'm using CI3 and just the template library, I copied it into CI's normal library application/library directory and the template_helper into the application/helper directory and autoload both the library and the helper - (created and autoload a helper for the ci() alias to get around that). I already have an existing project that's using Foundation instead of Bootstrap, I'd like to simply add the template library to it if at all possible.
Hello, if I do not set the template "layout" in my controller: $this-> template-> set_layout ('layout_name'). I have an error message "Unable to load The requested file: default.php". The Template library does not check the folder "core/common/view" ? Do you have any idea? thank
hi
first thanks for mentioning me in credits but that was not necessary
second can you please add some example on how to use third party libs
i tried to use https://github.com/thephpleague/omnipay
i installed via composer, modified composer_autoload to true and i tried to use the code sample from the git page and got a Fatal error: Class 'Omnipay' not found
am i missing something ?
another package i tried to use is https://code.google.com/p/php5-image/
this one without composer
i copied the content of the src folder from the download archive to common\third_party
so i have common\third_party\Image\Image.php
i tried to add the lib to autoload_classes config and just lost myself trying to fix require_once includes
if you have the time and patience i think a demo/tutorial would be appreciated by many people
thanks again for your work and close this request if it has no value
hi
can you please add support for
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
PHP 5.6 certificate verification failure
In a change from earlier versions, PHP 5.6 verifies certificates on SSL connections. If the SSL config of the server you are connecting to is not correct, you will get an error like this:
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1.
OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
The correct fix for this is to replace the invalid, misconfigured or self-signed certificate with a good one. Failing that, you can allow insecure connections via the SMTPOptions property introduced in PHPMailer 5.2.10 (it's possible to do this by subclassing the SMTP class in earlier versions), though this is not recommended:
Hi,
I noticed a problem with form_validation helper. When I set rule is_unique[users.email] I always get back FALSE as respond. Whatever I will type there always is FALSE. In config folder there also missing form_validation.php for settings some default options. Its not so much important but it can do nicely work :)
hi
i think i found a bug in fix_unchecked
create a form with 2 checkboxes and nothing else
post the form nothing is posted
it should post value 0 if nothing is checked or i'm wrong ?
the problem is on if (empty($_POST) || !is_array($_POST))
because nothing is checked post is empty
Currently the language settings (the leading language and the supported languages) are set through configuration files only. The purpose of this task is adding a database structure, and model for these settings, so they can be controlled within your administration panel.
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.